Thanks to visit codestin.com Credit goes to github.com
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 bbe9ed9Copy full SHA for bbe9ed9
1 file changed
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