diff options
Diffstat (limited to 'Objects/stringlib/count.h')
-rw-r--r-- | Objects/stringlib/count.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/count.h b/Objects/stringlib/count.h index 84a852f52e..367a15c51a 100644 --- a/Objects/stringlib/count.h +++ b/Objects/stringlib/count.h @@ -15,7 +15,7 @@ stringlib_count(const STRINGLIB_CHAR* str, Py_ssize_t str_len, if (sub_len == 0) { if (str_len < 0) - return 1; /* start >= len(str) */ + return 0; /* start > len(str) */ return str_len + 1; } |