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 3a728e5 commit 84fcdbdCopy full SHA for 84fcdbd
1 file changed
Objects/memoryobject.c
@@ -3235,9 +3235,9 @@ memory_hash(PyObject *_self)
3235
// Prevent 'self' from being freed when computing the item's hash.
3236
// See https://github.com/python/cpython/issues/142664.
3237
self->exports++;
3238
- int rc = PyObject_Hash(view->obj);
+ Py_hash_t h = PyObject_Hash(view->obj);
3239
self->exports--;
3240
- if (rc == -1) {
+ if (h == -1) {
3241
/* Keep the original error message */
3242
return -1;
3243
}
0 commit comments