diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 735cc04734e477..a22fc71a677509 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -15947,7 +15947,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"); }