We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyObject_Hash
1 parent 93029e4 commit 921b8b7Copy full SHA for 921b8b7
Objects/memoryobject.c
@@ -3232,9 +3232,9 @@ memory_hash(PyObject *_self)
3232
// Prevent 'self' from being freed when computing the item's hash.
3233
// See https://github.com/python/cpython/issues/142664.
3234
self->exports++;
3235
- int rc = PyObject_Hash(view->obj);
+ Py_hash_t h = PyObject_Hash(view->obj);
3236
self->exports--;
3237
- if (rc == -1) {
+ if (h == -1) {
3238
/* Keep the original error message */
3239
return -1;
3240
}
0 commit comments