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
1fa588e1
Kaydet (Commit)
1fa588e1
authored
Mar 25, 2008
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use a 32-bit unsigned int here, a long is not needed.
üst
18f1914a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
binascii.c
Modules/binascii.c
+2
-2
zlibmodule.c
Modules/zlibmodule.c
+4
-4
No files found.
Modules/binascii.c
Dosyayı görüntüle @
1fa588e1
...
...
@@ -756,12 +756,12 @@ PyDoc_STRVAR(doc_crc32,
static
PyObject
*
binascii_crc32
(
PyObject
*
self
,
PyObject
*
args
)
{
u
Long
crc32val
=
0
;
/* crc32(0L, Z_NULL, 0) */
u
nsigned
int
crc32val
=
0
;
/* crc32(0L, Z_NULL, 0) */
Byte
*
buf
;
Py_ssize_t
len
;
int
signed_val
;
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
k
:crc32"
,
&
buf
,
&
len
,
&
crc32val
))
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
I
:crc32"
,
&
buf
,
&
len
,
&
crc32val
))
return
NULL
;
/* In Python 2.x we return a signed integer regardless of native platform
* long size (the 32bit unsigned long is treated as 32-bit signed and sign
...
...
Modules/zlibmodule.c
Dosyayı görüntüle @
1fa588e1
...
...
@@ -889,11 +889,11 @@ PyDoc_STRVAR(adler32__doc__,
static
PyObject
*
PyZlib_adler32
(
PyObject
*
self
,
PyObject
*
args
)
{
u
Long
adler32val
=
1
;
/* adler32(0L, Z_NULL, 0) */
u
nsigned
int
adler32val
=
1
;
/* adler32(0L, Z_NULL, 0) */
Byte
*
buf
;
int
len
,
signed_val
;
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
k
:adler32"
,
&
buf
,
&
len
,
&
adler32val
))
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
I
:adler32"
,
&
buf
,
&
len
,
&
adler32val
))
return
NULL
;
/* In Python 2.x we return a signed integer regardless of native platform
* long size (the 32bit unsigned long is treated as 32-bit signed and sign
...
...
@@ -912,11 +912,11 @@ PyDoc_STRVAR(crc32__doc__,
static
PyObject
*
PyZlib_crc32
(
PyObject
*
self
,
PyObject
*
args
)
{
u
Long
crc32val
=
0
;
/* crc32(0L, Z_NULL, 0) */
u
nsigned
int
crc32val
=
0
;
/* crc32(0L, Z_NULL, 0) */
Byte
*
buf
;
int
len
,
signed_val
;
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
k
:crc32"
,
&
buf
,
&
len
,
&
crc32val
))
if
(
!
PyArg_ParseTuple
(
args
,
"s#|
I
:crc32"
,
&
buf
,
&
len
,
&
crc32val
))
return
NULL
;
/* In Python 2.x we return a signed integer regardless of native platform
* long size (the 32bit unsigned long is treated as 32-bit signed and sign
...
...
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