Skip to content

Commit da3e510

Browse files
Update str_ops.c
1 parent ee5c962 commit da3e510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/lib-rt/str_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ PyObject *CPy_Encode(PyObject *obj, PyObject *encoding, PyObject *errors) {
512512
}
513513

514514
Py_ssize_t CPyStr_Count(PyObject *unicode, PyObject *substring, Py_ssize_t start) {
515-
Py_ssize_t end = PyUnicode_GET_LENGTH(unicode) + 1;
515+
Py_ssize_t end = PyUnicode_GET_LENGTH(unicode);
516516
return PyUnicode_Count(unicode, substring, start, end);
517517
}
518518

0 commit comments

Comments
 (0)