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
17c7cd8d
Kaydet (Commit)
17c7cd8d
authored
Ock 17, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace PyNumber_Int with PyNumber_Long.
üst
e4bc7f69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
_struct.c
Modules/_struct.c
+3
-3
grpmodule.c
Modules/grpmodule.c
+1
-1
selectmodule.c
Modules/selectmodule.c
+1
-1
weakrefobject.c
Objects/weakrefobject.c
+1
-1
No files found.
Modules/_struct.c
Dosyayı görüntüle @
17c7cd8d
...
...
@@ -155,7 +155,7 @@ get_long(PyObject *v, long *p)
PyErr_Clear
();
if
(
PyErr_WarnEx
(
PyExc_DeprecationWarning
,
FLOAT_COERCE
,
2
)
<
0
)
return
-
1
;
o
=
PyNumber_
Int
(
v
);
o
=
PyNumber_
Long
(
v
);
if
(
o
==
NULL
)
return
-
1
;
res
=
get_long
(
o
,
p
);
...
...
@@ -260,7 +260,7 @@ get_wrapped_long(PyObject *v, long *p)
PyErr_Clear
();
if
(
PyErr_WarnEx
(
PyExc_DeprecationWarning
,
FLOAT_COERCE
,
2
)
<
0
)
return
-
1
;
o
=
PyNumber_
Int
(
v
);
o
=
PyNumber_
Long
(
v
);
if
(
o
==
NULL
)
return
-
1
;
res
=
get_wrapped_long
(
o
,
p
);
...
...
@@ -299,7 +299,7 @@ get_wrapped_ulong(PyObject *v, unsigned long *p)
PyErr_Clear
();
if
(
PyErr_WarnEx
(
PyExc_DeprecationWarning
,
FLOAT_COERCE
,
2
)
<
0
)
return
-
1
;
o
=
PyNumber_
Int
(
v
);
o
=
PyNumber_
Long
(
v
);
if
(
o
==
NULL
)
return
-
1
;
res
=
get_wrapped_ulong
(
o
,
p
);
...
...
Modules/grpmodule.c
Dosyayı görüntüle @
17c7cd8d
...
...
@@ -90,7 +90,7 @@ grp_getgrgid(PyObject *self, PyObject *pyo_id)
unsigned
int
gid
;
struct
group
*
p
;
py_int_id
=
PyNumber_
Int
(
pyo_id
);
py_int_id
=
PyNumber_
Long
(
pyo_id
);
if
(
!
py_int_id
)
return
NULL
;
gid
=
PyLong_AS_LONG
(
py_int_id
);
...
...
Modules/selectmodule.c
Dosyayı görüntüle @
17c7cd8d
...
...
@@ -515,7 +515,7 @@ poll_poll(pollObject *self, PyObject *args)
return
NULL
;
}
else
{
tout
=
PyNumber_
Int
(
tout
);
tout
=
PyNumber_
Long
(
tout
);
if
(
!
tout
)
return
NULL
;
timeout
=
PyLong_AsLong
(
tout
);
...
...
Objects/weakrefobject.c
Dosyayı görüntüle @
17c7cd8d
...
...
@@ -488,7 +488,7 @@ WRAP_BINARY(proxy_rshift, PyNumber_Rshift)
WRAP_BINARY
(
proxy_and
,
PyNumber_And
)
WRAP_BINARY
(
proxy_xor
,
PyNumber_Xor
)
WRAP_BINARY
(
proxy_or
,
PyNumber_Or
)
WRAP_UNARY
(
proxy_int
,
PyNumber_
Int
)
WRAP_UNARY
(
proxy_int
,
PyNumber_
Long
)
WRAP_UNARY
(
proxy_float
,
PyNumber_Float
)
WRAP_BINARY
(
proxy_iadd
,
PyNumber_InPlaceAdd
)
WRAP_BINARY
(
proxy_isub
,
PyNumber_InPlaceSubtract
)
...
...
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