Commit f3b7d86e authored by Benjamin Peterson's avatar Benjamin Peterson

use correct base ptr

parent 2844a7a6
......@@ -1975,8 +1975,9 @@ _PyUnicode_FindMaxChar(PyObject *unicode, Py_ssize_t start, Py_ssize_t end)
return 127;
kind = PyUnicode_KIND(unicode);
startptr = PyUnicode_DATA(unicode) + start * kind;
startptr = PyUnicode_DATA(unicode);
endptr = startptr + end * kind;
startptr += start * kind;
switch(kind) {
case PyUnicode_1BYTE_KIND:
return ucs1lib_find_max_char(startptr, endptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment