Skip to content

Commit

Permalink
Fixed undefined symbol: PyLong_AsSize_t on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Feb 7, 2014
1 parent 73170cc commit fa7d240
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
#define to_encoding(x) PyUnicode_DecodeASCII(x, strlen(x), "strict")
#endif

#ifdef PYPY_VERSION
#define PyLong_AsSize_t (size_t)PyLong_AsUnsignedLong
#endif

#ifndef Py_hash_t
#define Py_hash_t long
#endif
Expand Down

0 comments on commit fa7d240

Please sign in to comment.