PyObject_Hash returns long, not int
authorCarl Witty <cwitty@newtonlabs.com>
Sat, 27 Oct 2007 21:00:59 +0000 (14:00 -0700)
committerCarl Witty <cwitty@newtonlabs.com>
Sat, 27 Oct 2007 21:00:59 +0000 (14:00 -0700)
Cython/Compiler/Builtin.py

index eeec02a4a8a9013a4f8d9b89324d70a2c836c411..6651e50e9f3832d63b8be74287daa5fa98d4dc47 100644 (file)
@@ -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',     "",     "",      ""),