diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-01 22:55:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-01 22:55:25 (GMT) |
commit | 7a48ff7e068c1f292a151d3778586ec2050196e6 (patch) | |
tree | 9b04c1cdfb857e3903b73f298527c45393ef3b8a /Include | |
parent | 5a706cf8c0284b80b7aad6b72858027c844091a5 (diff) | |
download | cpython-7a48ff7e068c1f292a151d3778586ec2050196e6.zip cpython-7a48ff7e068c1f292a151d3778586ec2050196e6.tar.gz cpython-7a48ff7e068c1f292a151d3778586ec2050196e6.tar.bz2 |
Use Py_UCS1 instead of unsigned char in unicodeobject.h
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index d0d44e1..314dee4 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -417,7 +417,7 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; #define PyUnicode_READ(kind, data, index) \ ((Py_UCS4) \ ((kind) == PyUnicode_1BYTE_KIND ? \ - ((const unsigned char *)(data))[(index)] : \ + ((const Py_UCS1 *)(data))[(index)] : \ ((kind) == PyUnicode_2BYTE_KIND ? \ ((const Py_UCS2 *)(data))[(index)] : \ ((const Py_UCS4 *)(data))[(index)] \ @@ -431,7 +431,7 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; #define PyUnicode_READ_CHAR(unicode, index) \ ((Py_UCS4) \ (PyUnicode_KIND((unicode)) == PyUnicode_1BYTE_KIND ? \ - ((const unsigned char *)(PyUnicode_DATA((unicode))))[(index)] : \ + ((const Py_UCS1 *)(PyUnicode_DATA((unicode))))[(index)] : \ (PyUnicode_KIND((unicode)) == PyUnicode_2BYTE_KIND ? \ ((const Py_UCS2 *)(PyUnicode_DATA((unicode))))[(index)] : \ ((const Py_UCS4 *)(PyUnicode_DATA((unicode))))[(index)] \ |