Skip to content

Commit 169a322

Browse files
committed
Pypy3 does not (yet) have an implementation for Py_hexdigits.
1 parent d0c9f83 commit 169a322

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

whirlpool/pywhirlpool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
} \
3939
} while(0);
4040
#endif
41+
#endif
4142

43+
#if PY_MAJOR_VERSION >= 3 && !defined(PYPY_VERSION)
4244
#define HEXDIGITS(c) Py_hexdigits[c]
4345
#else
4446
#define HEXDIGITS(c) ((c>9) ? c+'a'-10 : c+'0')

0 commit comments

Comments
 (0)