mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
make pointer arith c89
This commit is contained in:
parent
f3b7d86e25
commit
b9f4c9daad
1 changed files with 2 additions and 2 deletions
|
@ -1976,8 +1976,8 @@ _PyUnicode_FindMaxChar(PyObject *unicode, Py_ssize_t start, Py_ssize_t end)
|
||||||
|
|
||||||
kind = PyUnicode_KIND(unicode);
|
kind = PyUnicode_KIND(unicode);
|
||||||
startptr = PyUnicode_DATA(unicode);
|
startptr = PyUnicode_DATA(unicode);
|
||||||
endptr = startptr + end * kind;
|
endptr = (char *)startptr + end * kind;
|
||||||
startptr += start * kind;
|
startptr = (char *)startptr + start * kind;
|
||||||
switch(kind) {
|
switch(kind) {
|
||||||
case PyUnicode_1BYTE_KIND:
|
case PyUnicode_1BYTE_KIND:
|
||||||
return ucs1lib_find_max_char(startptr, endptr);
|
return ucs1lib_find_max_char(startptr, endptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue