From 68862691e6229237301ae7af10a5c894e94353c6 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 15 Aug 2012 07:48:57 +0000 Subject: [PATCH] Fix #3541744 - Missing PyInt_FromSize_t calls for Python 3 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13608 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 3 +++ Lib/python/pyhead.swg | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES.current b/CHANGES.current index 78e39dbc1..eb109a6b0 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.8 (in progress) =========================== +2012-08-15: wsfulton + [Python] Fix #3541744 - Missing PyInt_FromSize_t calls for Python 3. + 2012-08-13: wsfulton [Java] Patch from David Baum to add the assumeoverride feature for Java directors to improve performance when all overridden methods can be assumed to be overridden. diff --git a/Lib/python/pyhead.swg b/Lib/python/pyhead.swg index 803cd0745..c333e9d89 100644 --- a/Lib/python/pyhead.swg +++ b/Lib/python/pyhead.swg @@ -5,6 +5,7 @@ #define PyInt_Check(x) PyLong_Check(x) #define PyInt_AsLong(x) PyLong_AsLong(x) #define PyInt_FromLong(x) PyLong_FromLong(x) +#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) #define PyString_Check(name) PyBytes_Check(name) #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)