rpm: fix build on 64bit

This commit is contained in:
Đoàn Trần Công Danh 2025-08-20 10:26:08 +07:00
parent 10bf9f76b2
commit abc91df969

View file

@ -5,10 +5,10 @@
}
-static long hdr_hash(PyObject * h)
+static int hdr_hash(PyObject * h)
+static Py_hash_t hdr_hash(PyObject * h)
{
- return (long) h;
+ return (int) h;
+ return (Py_hash_t) h;
}
static PyObject * hdr_reduce(hdrObject *s)