summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-18 12:24:53 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-18 12:24:53 (GMT)
commit016cec75bd43b29240370f81319ceccdab5cc771 (patch)
treea6bb17475f3d697314e2b5e16a378092b0d10960
parent2a94f4c0ef140b1d6de389e406ad8af34afbf167 (diff)
downloadcpython-016cec75bd43b29240370f81319ceccdab5cc771.zip
cpython-016cec75bd43b29240370f81319ceccdab5cc771.tar.gz
cpython-016cec75bd43b29240370f81319ceccdab5cc771.tar.bz2
Fix hash function type.
-rw-r--r--Modules/_sqlite/row.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c
index 3decb8d..3d44094 100644
--- a/Modules/_sqlite/row.c
+++ b/Modules/_sqlite/row.c
@@ -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);
}