mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue