changeset 30091:d576b7394646

util: define PyInt_Type on Python 3 util.h attempts to wallpaper over C API differences between Python 2 and 3. This is not the correct approach where performance is critical. But it is good enough for the current state of the Python 3 port.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Oct 2016 19:02:44 +0200
parents 8abe9264c73a
children 67b0484c9ce4
files mercurial/util.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.h	Sat Oct 08 17:51:29 2016 +0200
+++ b/mercurial/util.h	Sat Oct 08 19:02:44 2016 +0200
@@ -13,6 +13,7 @@
 #if PY_MAJOR_VERSION >= 3
 
 #define IS_PY3K
+#define PyInt_Type PyLong_Type
 #define PyInt_FromLong PyLong_FromLong
 #define PyInt_AsLong PyLong_AsLong