Commit 47b0ad9d authored by Matti Picus's avatar Matti Picus
Browse files

wrong return type for _Py_HashDouble, impacts 64-bit windows

parent 8c48494b3e9f
......@@ -365,7 +365,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