diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 18:24:15 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 18:24:15 (GMT) |
commit | 9c0e9c089c758bc9b64f0379bc93f8ea6740eb53 (patch) | |
tree | faf6ca0008b35c87a91be9a990f13955e2545502 /Objects | |
parent | b3167cbcd76652f9f5f64196ce371562bcd8d42c (diff) | |
download | cpython-9c0e9c089c758bc9b64f0379bc93f8ea6740eb53.zip cpython-9c0e9c089c758bc9b64f0379bc93f8ea6740eb53.tar.gz cpython-9c0e9c089c758bc9b64f0379bc93f8ea6740eb53.tar.bz2 |
needspeed: rpartition documentation, tests, and a bug fixes.
feel free to add more tests and improve the documentation.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index df15f4b..7d644d3 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3861,8 +3861,8 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s, 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)); } |