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
a645b302
Kaydet (Commit)
a645b302
authored
Eki 04, 2001
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add various typecasts (back and forth from char * to unsigned char *)
to make the SGI C compiler happier (bug #445960).
üst
201baee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
binascii.c
Modules/binascii.c
+5
-5
No files found.
Modules/binascii.c
Dosyayı görüntüle @
a645b302
...
@@ -1013,7 +1013,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -1013,7 +1013,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
return
NULL
;
return
NULL
;
/* We allocate the output same size as input, this is overkill */
/* We allocate the output same size as input, this is overkill */
odata
=
(
char
*
)
calloc
(
1
,
datalen
);
odata
=
(
unsigned
char
*
)
calloc
(
1
,
datalen
);
if
(
odata
==
NULL
)
{
if
(
odata
==
NULL
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
...
@@ -1065,7 +1065,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -1065,7 +1065,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
out
++
;
out
++
;
}
}
}
}
if
((
rv
=
PyString_FromStringAndSize
(
odata
,
out
))
==
NULL
)
{
if
((
rv
=
PyString_FromStringAndSize
(
(
char
*
)
odata
,
out
))
==
NULL
)
{
free
(
odata
);
free
(
odata
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1119,7 +1119,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -1119,7 +1119,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
/* XXX: this function has the side effect of converting all of
/* XXX: this function has the side effect of converting all of
* the end of lines to be the same depending on this detection
* the end of lines to be the same depending on this detection
* here */
* here */
p
=
strchr
(
data
,
'\n'
);
p
=
(
unsigned
char
*
)
strchr
((
char
*
)
data
,
'\n'
);
if
((
p
!=
NULL
)
&&
(
p
>
data
)
&&
(
*
(
p
-
1
)
==
'\r'
))
if
((
p
!=
NULL
)
&&
(
p
>
data
)
&&
(
*
(
p
-
1
)
==
'\r'
))
crlf
=
1
;
crlf
=
1
;
...
@@ -1183,7 +1183,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -1183,7 +1183,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
}
}
}
}
odata
=
(
char
*
)
calloc
(
1
,
odatalen
);
odata
=
(
unsigned
char
*
)
calloc
(
1
,
odatalen
);
if
(
odata
==
NULL
)
{
if
(
odata
==
NULL
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
...
@@ -1256,7 +1256,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -1256,7 +1256,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
}
}
}
}
}
}
if
((
rv
=
PyString_FromStringAndSize
(
odata
,
out
))
==
NULL
)
{
if
((
rv
=
PyString_FromStringAndSize
(
(
char
*
)
odata
,
out
))
==
NULL
)
{
free
(
odata
);
free
(
odata
);
return
NULL
;
return
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