From: Mark Wooding Date: Sun, 20 Oct 2019 23:33:22 +0000 (+0100) Subject: *.c: Use the new `Py_hash_t' type. X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/commitdiff_plain/1edc7284ff2dcfa5ebda27b5fc44f6053160ac2a *.c: Use the new `Py_hash_t' type. --- diff --git a/pyke.h b/pyke.h index b6a5d8d..6c4e4e1 100644 --- a/pyke.h +++ b/pyke.h @@ -82,6 +82,13 @@ PRIVATE_SYMBOLS; # define PyVarObject_HEAD_INIT(super, sz) PyObject_HEAD_INIT(super) sz, #endif +/* Python 3.2 changed the type of hash values, so paper over this annoying + * difference. + */ +#if PY_VERSION_HEX < 0x03020000 + typedef long Py_hash_t; +#endif + /*----- Utilities for returning values and exceptions ---------------------*/ /* Returning values. */