Skip to content

Commit fa7d240

Browse files
committed
Fixed undefined symbol: PyLong_AsSize_t on PyPy
1 parent 73170cc commit fa7d240

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils.h

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
#define to_encoding(x) PyUnicode_DecodeASCII(x, strlen(x), "strict")
6262
#endif
6363

64+
#ifdef PYPY_VERSION
65+
#define PyLong_AsSize_t (size_t)PyLong_AsUnsignedLong
66+
#endif
67+
6468
#ifndef Py_hash_t
6569
#define Py_hash_t long
6670
#endif

0 commit comments

Comments
 (0)