Commit 17ec25f7 authored by Matti Picus's avatar Matti Picus
Browse files

wrong return type for _Py_HashDouble, impacts 64-bit windows

branch : release-pypy3.7-v7.x
parent cd00c77c619f
Pipeline #21698 passed with stage
in 8 minutes and 56 seconds
......@@ -369,7 +369,7 @@ def PyObject_Hash(space, w_obj):
This is the equivalent of the Python expression hash(o)."""
return space.hash_w(w_obj)
@cpython_api([rffi.DOUBLE], rffi.LONG, error=-1)
@cpython_api([rffi.DOUBLE], lltype.Signed, error=-1)
def _Py_HashDouble(space, v):
return space.hash_w(space.newfloat(v))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment