8000
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.
1 parent 05fc4d7 commit fe3e623Copy full SHA for fe3e623
Objects/longobject.c
@@ -3614,8 +3614,9 @@ long_dealloc(PyObject *self)
3614
}
3615
3616
static Py_hash_t
3617
-long_hash(PyLongObject *v)
+long_hash(PyObject *obj)
3618
{
3619
+ PyLongObject *v = (PyLongObject *)obj;
3620
Py_uhash_t x;
3621
Py_ssize_t i;
3622
int sign;
@@ -6607,7 +6608,7 @@ PyTypeObject PyLong_Type = {
6607
6608
&long_as_number, /* tp_as_number */
6609
0, /* tp_as_sequence */
6610
0, /* tp_as_mapping */
- (hashfunc)long_hash, /* tp_hash */
6611
+ long_hash, /* tp_hash */
6612
0, /* tp_call */
6613
0, /* tp_str */
6614
PyObject_GenericGetAttr, /* tp_getattro */
0 commit comments