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
d3881b02
Kaydet (Commit)
d3881b02
authored
May 30, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use Py_SAFE_DOWNCAST for safety. Fix format strings. Remove 2 more stray | in comment
üst
80af59cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dictobject.c
Objects/dictobject.c
+6
-6
No files found.
Objects/dictobject.c
Dosyayı görüntüle @
d3881b02
...
...
@@ -764,7 +764,7 @@ dict_print(register dictobject *mp, register FILE *fp, register int flags)
register
Py_ssize_t
i
;
register
Py_ssize_t
any
;
i
=
(
int
)
Py_ReprEnter
((
PyObject
*
)
mp
);
i
=
Py_SAFE_DOWNCAST
(
Py_ReprEnter
((
PyObject
*
)
mp
),
Py_ssize_t
,
int
);
if
(
i
!=
0
)
{
if
(
i
<
0
)
return
i
;
...
...
@@ -1172,14 +1172,14 @@ PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
if
(
PyErr_ExceptionMatches
(
PyExc_TypeError
))
PyErr_Format
(
PyExc_TypeError
,
"cannot convert dictionary update "
"sequence element #%d to a sequence"
,
"sequence element #%
z
d to a sequence"
,
i
);
goto
Fail
;
}
n
=
PySequence_Fast_GET_SIZE
(
fast
);
if
(
n
!=
2
)
{
PyErr_Format
(
PyExc_ValueError
,
"dictionary update sequence element #%d "
"dictionary update sequence element #%
z
d "
"has length %zd; 2 is required"
,
i
,
n
);
goto
Fail
;
...
...
@@ -1205,7 +1205,7 @@ Fail:
i
=
-
1
;
Return:
Py_DECREF
(
it
);
return
(
int
)
i
;
return
Py_SAFE_DOWNCAST
(
i
,
Py_ssize_t
,
int
)
;
}
int
...
...
@@ -1411,7 +1411,7 @@ characterize(dictobject *a, dictobject *b, PyObject **pval)
* find its associated value anymore; or
* maybe it is but the compare deleted the
* a[thiskey] entry.
|
*/
*/
Py_DECREF
(
thiskey
);
continue
;
}
...
...
@@ -1711,7 +1711,7 @@ dict_popitem(dictobject *mp)
* field of slot 0 to hold a search finger:
* If slot 0 has a value, use slot 0.
* Else slot 0 is being used to hold a search finger,
|
* and we use its hash value as the first index to look.
* and we use its hash value as the first index to look.
*/
ep
=
&
mp
->
ma_table
[
0
];
if
(
ep
->
me_value
==
NULL
)
{
...
...
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