diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 60cd9441462ea1..acb08fa37905fc 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -15200,7 +15200,7 @@ intern_static(PyInterpreterState *interp, PyObject *s /* stolen */) return Py_NewRef(r); } - if (_Py_hashtable_set(INTERNED_STRINGS, s, s) < -1) { + if (_Py_hashtable_set(INTERNED_STRINGS, s, s) < 0) { Py_FatalError("failed to intern static string"); }