diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-24 01:45:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-24 01:45:40 (GMT) |
commit | b9f4c9daad84a55599b12f2bb091eabcada14c06 (patch) | |
tree | eae85c858566044d5bb1dfc0861d312ae8dbcf85 /Objects | |
parent | f3b7d86e25b067ae3b8260df8b58ce55647396cb (diff) | |
download | cpython-b9f4c9daad84a55599b12f2bb091eabcada14c06.zip cpython-b9f4c9daad84a55599b12f2bb091eabcada14c06.tar.gz cpython-b9f4c9daad84a55599b12f2bb091eabcada14c06.tar.bz2 |
make pointer arith c89
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 27492c8..7efa939 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1976,8 +1976,8 @@ _PyUnicode_FindMaxChar(PyObject *unicode, Py_ssize_t start, Py_ssize_t end) kind = PyUnicode_KIND(unicode); startptr = PyUnicode_DATA(unicode); - endptr = startptr + end * kind; - startptr += start * kind; + endptr = (char *)startptr + end * kind; + startptr = (char *)startptr + start * kind; switch(kind) { case PyUnicode_1BYTE_KIND: return ucs1lib_find_max_char(startptr, endptr); |