diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-01 22:36:53 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-01 22:36:53 (GMT) |
| commit | 5a706cf8c0284b80b7aad6b72858027c844091a5 (patch) | |
| tree | e9ad5e6d013922552cf81ae31429af87d9bf8b00 /Objects/unicodeobject.c | |
| parent | cd9950fd094394927c0cf85560679ca6a7b33038 (diff) | |
| download | cpython-5a706cf8c0284b80b7aad6b72858027c844091a5.zip cpython-5a706cf8c0284b80b7aad6b72858027c844091a5.tar.gz cpython-5a706cf8c0284b80b7aad6b72858027c844091a5.tar.bz2 | |
Fix usage of PyUnicode_READY() in PyUnicode_GetLength()
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3ce845c..7215517 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2838,7 +2838,7 @@ PyUnicode_GetSize(PyObject *unicode) Py_ssize_t PyUnicode_GetLength(PyObject *unicode) { - if (!PyUnicode_Check(unicode) || PyUnicode_READY(unicode) != -1) { + if (!PyUnicode_Check(unicode) || PyUnicode_READY(unicode) == -1) { PyErr_BadArgument(); return -1; } |
