Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19b409a

Browse files
committed
merge
2 parents efad00d + 94d558b commit 19b409a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Objects/unicodeobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,9 @@ _PyUnicode_FindMaxChar(PyObject *unicode, Py_ssize_t start, Py_ssize_t end)
19851985
if (start == end)
19861986
return 127;
19871987

1988+
if (PyUnicode_IS_ASCII(unicode))
1989+
return 127;
1990+
19881991
kind = PyUnicode_KIND(unicode);
19891992
startptr = PyUnicode_DATA(unicode);
19901993
endptr = (char *)startptr + end * kind;

0 commit comments

Comments
 (0)