]> granicus.if.org Git - python/commitdiff
Fix hash function type.
authorGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 12:24:53 +0000 (12:24 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 12:24:53 +0000 (12:24 +0000)
Modules/_sqlite/row.c

index 3decb8d5e6f9426c4551764664a4794abd732e2b..3d440942f9d5e922a4cef4b43a02c196fd94a0a6 100644 (file)
@@ -166,7 +166,7 @@ static PyObject* pysqlite_iter(pysqlite_Row* self)
     return PyObject_GetIter(self->data);
 }
 
-static long pysqlite_row_hash(pysqlite_Row *self)
+static Py_hash_t pysqlite_row_hash(pysqlite_Row *self)
 {
     return PyObject_Hash(self->description) ^ PyObject_Hash(self->data);
 }