Skip to content

Commit 0c09622

Browse files
committed
Use Py_hash_t return type for table_nohash(). Fixes #149
On 32-bit systems, tp_hash expects Py_hash_t (int) not long, causing a build failure due to incompatible pointer types.
1 parent 52f8975 commit 0c09622

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/tableobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ static int table_init(tableobject *self, PyObject *args, PyObject *kwds)
11581158
return result;
11591159
}
11601160

1161-
static long table_nohash(PyObject *self)
1161+
static Py_hash_t table_nohash(PyObject *self)
11621162
{
11631163
TABLE_DEBUG("table_nohash");
11641164

0 commit comments

Comments
 (0)