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
24aa26b0
Kaydet (Commit)
24aa26b0
authored
Kas 25, 2010
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix compilation warnings seen on Windows.
'typecode' is always an ascii letter, there was no data lost.
üst
5fa40c01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arraymodule.c
Modules/arraymodule.c
+7
-7
No files found.
Modules/arraymodule.c
Dosyayı görüntüle @
24aa26b0
...
...
@@ -1448,7 +1448,7 @@ array_fromunicode(arrayobject *self, PyObject *args)
{
Py_UNICODE
*
ustr
;
Py_ssize_t
n
;
char
typecode
;
Py_UNICODE
typecode
;
if
(
!
PyArg_ParseTuple
(
args
,
"u#:fromunicode"
,
&
ustr
,
&
n
))
return
NULL
;
...
...
@@ -1483,7 +1483,7 @@ append Unicode data to an array of some other type.");
static
PyObject
*
array_tounicode
(
arrayobject
*
self
,
PyObject
*
unused
)
{
char
typecode
;
Py_UNICODE
typecode
;
typecode
=
self
->
ob_descr
->
typecode
;
if
((
typecode
!=
'u'
))
{
PyErr_SetString
(
PyExc_ValueError
,
...
...
@@ -2002,8 +2002,8 @@ PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
static
PyObject
*
array_get_typecode
(
arrayobject
*
a
,
void
*
closure
)
{
char
tc
=
a
->
ob_descr
->
typecode
;
return
PyUnicode_From
StringAndSiz
e
(
&
tc
,
1
);
Py_UNICODE
tc
=
a
->
ob_descr
->
typecode
;
return
PyUnicode_From
Unicod
e
(
&
tc
,
1
);
}
static
PyObject
*
...
...
@@ -2075,21 +2075,21 @@ static PyMethodDef array_methods[] = {
static
PyObject
*
array_repr
(
arrayobject
*
a
)
{
char
typecode
;
Py_UNICODE
typecode
;
PyObject
*
s
,
*
v
=
NULL
;
Py_ssize_t
len
;
len
=
Py_SIZE
(
a
);
typecode
=
a
->
ob_descr
->
typecode
;
if
(
len
==
0
)
{
return
PyUnicode_FromFormat
(
"array('%c')"
,
typecode
);
return
PyUnicode_FromFormat
(
"array('%c')"
,
(
int
)
typecode
);
}
if
((
typecode
==
'u'
))
v
=
array_tounicode
(
a
,
NULL
);
else
v
=
array_tolist
(
a
,
NULL
);
s
=
PyUnicode_FromFormat
(
"array('%c', %R)"
,
typecode
,
v
);
s
=
PyUnicode_FromFormat
(
"array('%c', %R)"
,
(
int
)
typecode
,
v
);
Py_DECREF
(
v
);
return
s
;
}
...
...
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