From 882b87dd34b8c0050098c3b43776d1c85b494165 Mon Sep 17 00:00:00 2001 From: Carl Witty Date: Sat, 27 Oct 2007 14:00:59 -0700 Subject: [PATCH] PyObject_Hash returns long, not int --- Cython/Compiler/Builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index eeec02a4..6651e50e 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -20,7 +20,7 @@ builtin_function_table = [ ('getattr', "OO", "O", "PyObject_GetAttr"), ('getattr3', "OOO", "O", "__Pyx_GetAttr3", "getattr"), ('hasattr', "OO", "b", "PyObject_HasAttr"), - ('hash', "O", "i", "PyObject_Hash"), + ('hash', "O", "l", "PyObject_Hash"), #('hex', "", "", ""), #('id', "", "", ""), #('input', "", "", ""), -- 2.26.2