summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-01 22:04:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-01 22:04:29 (GMT)
commit9ca3ffac94ad715e23787142aff4b7a465c4c744 (patch)
tree81fd717742ff6ee095eb4fcd1cb7672709d32b7d /Objects
parente157cf10126db5d560629145a02cd91fc6763733 (diff)
downloadcpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.zip
cpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.tar.gz
cpython-9ca3ffac94ad715e23787142aff4b7a465c4c744.tar.bz2
== -1 is convention
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3d8c895..829f19c 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;
}