From: Benjamin Peterson Date: Sun, 1 Jan 2012 22:04:29 +0000 (-0600) Subject: == -1 is convention X-Git-Tag: v3.3.0a1~493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ca3ffac94ad715e23787142aff4b7a465c4c744;p=thirdparty%2FPython%2Fcpython.git == -1 is convention --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3d8c8952f376..829f19c72599 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; }