]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
== -1 is convention
authorBenjamin Peterson <benjamin@python.org>
Sun, 1 Jan 2012 22:04:29 +0000 (16:04 -0600)
committerBenjamin Peterson <benjamin@python.org>
Sun, 1 Jan 2012 22:04:29 +0000 (16:04 -0600)
Objects/unicodeobject.c

index 3d8c8952f3764005c25c165c7a6d49a65169e92e..829f19c7259948e8cae71cc3643ebf6e18bafe22 100644 (file)
@@ -8770,7 +8770,7 @@ _PyUnicode_TranslateCharmap(PyObject *input,
                                                                  collstart, collend, &newpos);
                 if (repunicode == NULL)
                     goto onError;
-                if (PyUnicode_READY(repunicode) < 0) {
+                if (PyUnicode_READY(repunicode) == -1) {
                     Py_DECREF(repunicode);
                     goto onError;
                 }