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 4fcb1d9 commit b3a0d15Copy full SHA for b3a0d15
1 file changed
Objects/memoryobject.c
@@ -3078,9 +3078,9 @@ memory_hash(PyObject *_self)
3078
// Prevent 'self' from being freed when computing the item's hash.
3079
// See https://github.com/python/cpython/issues/142664.
3080
self->exports++;
3081
- int rc = PyObject_Hash(view->obj);
+ Py_hash_t h = PyObject_Hash(view->obj);
3082
self->exports--;
3083
- if (rc == -1) {
+ if (h == -1) {
3084
/* Keep the original error message */
3085
return -1;
3086
}
0 commit comments