== -1 is convention

This commit is contained in:
Benjamin Peterson 2012-01-01 16:04:29 -06:00
parent e157cf1012
commit 9ca3ffac94
1 changed files with 1 additions and 1 deletions

View File

@ -8770,7 +8770,7 @@ _PyUnicode_TranslateCharmap(PyObject *input,
collstart, collend, &newpos); collstart, collend, &newpos);
if (repunicode == NULL) if (repunicode == NULL)
goto onError; goto onError;
if (PyUnicode_READY(repunicode) < 0) { if (PyUnicode_READY(repunicode) == -1) {
Py_DECREF(repunicode); Py_DECREF(repunicode);
goto onError; goto onError;
} }