Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ab02db23
Kaydet (Commit)
ab02db23
authored
Eyl 19, 2012
tarafından
Trent Nelson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Silence compiler warnings on Solaris 10 via explicit (void *) casts.
(Compiler: Solaris Studio 12.3)
üst
16d2b478
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
typeobject.c
Objects/typeobject.c
+3
-3
No files found.
Objects/typeobject.c
Dosyayı görüntüle @
ab02db23
...
...
@@ -5772,7 +5772,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
descr
=
_PyType_Lookup
(
type
,
p
->
name_strobj
);
if
(
descr
==
NULL
)
{
if
(
ptr
==
(
void
**
)
&
type
->
tp_iternext
)
{
specific
=
_PyObject_NextNotImplemented
;
specific
=
(
void
*
)
_PyObject_NextNotImplemented
;
}
continue
;
}
...
...
@@ -5819,7 +5819,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
/* We specifically allow __hash__ to be set to None
to prevent inheritance of the default
implementation from object.__hash__ */
specific
=
PyObject_HashNotImplemented
;
specific
=
(
void
*
)
PyObject_HashNotImplemented
;
}
else
{
use_generic
=
1
;
...
...
@@ -6034,7 +6034,7 @@ add_operators(PyTypeObject *type)
continue
;
if
(
PyDict_GetItem
(
dict
,
p
->
name_strobj
))
continue
;
if
(
*
ptr
==
PyObject_HashNotImplemented
)
{
if
(
*
ptr
==
(
void
*
)
PyObject_HashNotImplemented
)
{
/* Classes may prevent the inheritance of the tp_hash
slot by storing PyObject_HashNotImplemented in it. Make it
visible as a None value for the __hash__ attribute. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment