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
6430fd56
Kaydet (Commit)
6430fd56
authored
Eyl 29, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE
üst
d9c563e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bytearrayobject.c
Objects/bytearrayobject.c
+2
-2
bytesobject.c
Objects/bytesobject.c
+2
-2
No files found.
Objects/bytearrayobject.c
Dosyayı görüntüle @
6430fd56
...
...
@@ -1147,7 +1147,7 @@ PyDoc_STRVAR(clear__doc__,
\n
\
Remove all items from B."
);
static
PyObject
*
static
PyObject
*
bytearray_clear
(
PyByteArrayObject
*
self
)
{
if
(
PyByteArray_Resize
((
PyObject
*
)
self
,
0
)
<
0
)
...
...
@@ -2629,7 +2629,7 @@ Spaces between two numbers are accepted.\n\
Example: bytearray.fromhex('B9 01EF') -> bytearray(b'
\\
xb9
\\
x01
\\
xef')."
);
static
int
hex_digit_to_int
(
Py_U
NICODE
c
)
hex_digit_to_int
(
Py_U
CS4
c
)
{
if
(
c
>=
128
)
return
-
1
;
...
...
Objects/bytesobject.c
Dosyayı görüntüle @
6430fd56
...
...
@@ -593,7 +593,7 @@ PyBytes_Repr(PyObject *obj, int smartquotes)
quote
=
'"'
;
if
(
squotes
&&
quote
==
'\''
)
newsize
+=
squotes
;
if
(
newsize
>
(
PY_SSIZE_T_MAX
-
sizeof
(
PyUnicodeObject
)
-
1
))
{
PyErr_SetString
(
PyExc_OverflowError
,
"bytes object is too large to make repr"
);
...
...
@@ -2330,7 +2330,7 @@ Spaces between two numbers are accepted.\n\
Example: bytes.fromhex('B9 01EF') -> b'
\\
xb9
\\
x01
\\
xef'."
);
static
int
hex_digit_to_int
(
Py_U
NICODE
c
)
hex_digit_to_int
(
Py_U
CS4
c
)
{
if
(
c
>=
128
)
return
-
1
;
...
...
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