Commit e7dfeeb8 authored by Benjamin Peterson's avatar Benjamin Peterson

-1 is reserved for errors

parent e6baa46a
......@@ -4959,6 +4959,9 @@ slot_tp_hash(PyObject *self)
PyErr_Clear();
h = PyLong_Type.tp_hash(res);
}
/* -1 is reserved for errors. */
if (h == -1)
h = -2;
Py_DECREF(res);
return h;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment