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
360496d9
Kaydet (Commit)
360496d9
authored
May 10, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a bug in test_c_api() that caused a negative refcount.
üst
3ebc45d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setobject.c
Objects/setobject.c
+3
-3
No files found.
Objects/setobject.c
Dosyayı görüntüle @
360496d9
...
...
@@ -2205,7 +2205,7 @@ test_c_api(PySetObject *so)
Py_ssize_t
count
;
char
*
s
;
Py_ssize_t
i
;
PyObject
*
elem
,
*
dup
,
*
t
,
*
f
,
*
dup2
;
PyObject
*
elem
=
NULL
,
*
dup
=
NULL
,
*
t
,
*
f
,
*
dup2
,
*
x
;
PyObject
*
ob
=
(
PyObject
*
)
so
;
/* Verify preconditions and exercise type/size checks */
...
...
@@ -2251,8 +2251,8 @@ test_c_api(PySetObject *so)
/* Exercise direct iteration */
i
=
0
,
count
=
0
;
while
(
_PySet_Next
((
PyObject
*
)
dup
,
&
i
,
&
elem
))
{
s
=
PyString_AsString
(
elem
);
while
(
_PySet_Next
((
PyObject
*
)
dup
,
&
i
,
&
x
))
{
s
=
PyString_AsString
(
x
);
assert
(
s
&&
(
s
[
0
]
==
'a'
||
s
[
0
]
==
'b'
||
s
[
0
]
==
'c'
));
count
++
;
}
...
...
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