chiark
/
gitweb
/
~mdw
/
pyke
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96936b4
)
*.c: Use the new `Py_hash_t' type.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 20 Oct 2019 23:33:22 +0000
(
00:33
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:14 +0000
(12:44 +0100)
pyke.h
patch
|
blob
|
blame
|
history
diff --git
a/pyke.h
b/pyke.h
index b6a5d8d403b5742e138154204b6227c6378a7c3b..6c4e4e125964a0f7907f33df558d352426d9948b 100644
(file)
--- 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. */