Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 38391:78771d673b4b legacy-trunk
needspeed: rpartition documentation, tests, and a bug fixes.
feel free to add more tests and improve the documentation.
| author | Fredrik Lundh <fredrik@pythonware.com> |
|---|---|
| date | Fri, 26 May 2006 18:24:15 +0000 |
| parents | 76807902a2f5 |
| children | 33c328896f52 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Fri May 26 18:15:38 2006 +0000 +++ b/Objects/unicodeobject.c Fri May 26 18:24:15 2006 +0000 @@ -3861,8 +3861,8 @@ Py_LOCAL(int) STRINGLIB_CMP(const Py_UNICODE* str, const Py_UNICODE* other, Py_ssize_t len) { - if (str[0] == other[0]) - return 0; + if (str[0] != other[0]) + return 1; return memcmp((void*) str, (void*) other, len * sizeof(Py_UNICODE)); }
