diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ad24bc5d83933a..b0b5e01a0f4e9a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14181,7 +14181,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"); }