projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58bb78
)
c89 fix
author
Robert Bradshaw
<robertwb@google.com>
Thu, 21 Feb 2013 23:40:13 +0000
(15:40 -0800)
committer
Robert Bradshaw
<robertwb@google.com>
Thu, 21 Feb 2013 23:40:13 +0000
(15:40 -0800)
Cython/Utility/TypeConversion.c
patch
|
blob
|
history
diff --git
a/Cython/Utility/TypeConversion.c
b/Cython/Utility/TypeConversion.c
index
0d1d92b
..
b5cd9ba
100644
(file)
--- a/
Cython/Utility/TypeConversion.c
+++ b/
Cython/Utility/TypeConversion.c
@@
-124,7
+124,8
@@
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_
PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
char* maybe_ascii = PyBytes_AS_STRING(defenc);
char* end = maybe_ascii + PyBytes_GET_SIZE(defenc);
- for (char* c = maybe_ascii; c < end; c++) {
+ char* c;
+ for (c = maybe_ascii; c < end; c++) {
if ((unsigned char) (*c) >= 128) {
// raise the error
PyUnicode_AsASCIIString(o);