diff options
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index c9c9817f12..cf7eb2c2b3 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2552,7 +2552,7 @@ long_richcompare(PyObject *self, PyObject *other, int op) return v; } -static long +static Py_hash_t long_hash(PyLongObject *v) { unsigned long x; @@ -2606,7 +2606,7 @@ long_hash(PyLongObject *v) x = x * sign; if (x == (unsigned long)-1) x = (unsigned long)-2; - return (long)x; + return (Py_hash_t)x; } |