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
ad89bbcd
Kaydet (Commit)
ad89bbcd
authored
Haz 28, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Trent Mick: change a few casts for Win64 compatibility.
üst
2c9cb7af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
classobject.c
Objects/classobject.c
+1
-1
object.c
Objects/object.c
+1
-1
No files found.
Objects/classobject.c
Dosyayı görüntüle @
ad89bbcd
...
@@ -283,7 +283,7 @@ set_name(c, v)
...
@@ -283,7 +283,7 @@ set_name(c, v)
{
{
if
(
v
==
NULL
||
!
PyString_Check
(
v
))
if
(
v
==
NULL
||
!
PyString_Check
(
v
))
return
"__name__ must be a string object"
;
return
"__name__ must be a string object"
;
if
(
(
long
)
strlen
(
PyString_AS_STRING
(
v
))
!=
PyString_GET_SIZE
(
v
))
if
(
strlen
(
PyString_AS_STRING
(
v
))
!=
(
size_t
)
PyString_GET_SIZE
(
v
))
return
"__name__ must not contain null bytes"
;
return
"__name__ must not contain null bytes"
;
set_slot
(
&
c
->
cl_name
,
v
);
set_slot
(
&
c
->
cl_name
,
v
);
return
""
;
return
""
;
...
...
Objects/object.c
Dosyayı görüntüle @
ad89bbcd
...
@@ -366,7 +366,7 @@ make_pair(v, w)
...
@@ -366,7 +366,7 @@ make_pair(v, w)
if
(
pair
==
NULL
)
{
if
(
pair
==
NULL
)
{
return
NULL
;
return
NULL
;
}
}
if
(
(
long
)
v
<=
(
long
)
w
)
{
if
(
v
<=
w
)
{
PyTuple_SET_ITEM
(
pair
,
0
,
PyLong_FromVoidPtr
((
void
*
)
v
));
PyTuple_SET_ITEM
(
pair
,
0
,
PyLong_FromVoidPtr
((
void
*
)
v
));
PyTuple_SET_ITEM
(
pair
,
1
,
PyLong_FromVoidPtr
((
void
*
)
w
));
PyTuple_SET_ITEM
(
pair
,
1
,
PyLong_FromVoidPtr
((
void
*
)
w
));
}
else
{
}
else
{
...
...
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