From b49ba78a1d2d2b7bc817ce596d306309ee797502 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 7 Feb 2006 09:23:43 +0000 Subject: [PATCH] split operation since they are macros git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8735 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 034e2c8ef..d49b92fc6 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -1004,7 +1004,8 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int *ptr = vptr; /* transfer the ownership to 'ptr' */ iobj->own = 0; - res = SWIG_AddNewMask(SWIG_AddCast(res)); + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); } else { res = SWIG_AddCast(res); }