From b61ccd00ecdfd6320ed433a49fa0474595209130 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Tue, 30 Aug 2011 21:37:16 +0000 Subject: [PATCH] Bug 3400486: Fix error signalling for built-in constructors. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12792 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 2 ++ Source/Modules/python.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.current b/CHANGES.current index 3379b5af6..298efabf6 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -4,6 +4,8 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.5 (in progress) =========================== +2011-08-30: szager + [python] Bug 3400486, fix error signalling for built-in constructors. 2011-08-26: wsfulton [Go] Fix file/line number display for "gotype" when using typemap debugging options diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 619e99e86..34f7248ca 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -2545,7 +2545,7 @@ public: } if (builtin_ctor) - Append(f->code, " return resultobj == Py_None ? 1 : 0;\n"); + Append(f->code, " return resultobj == Py_None ? -1 : 0;\n"); else Append(f->code, " return resultobj;\n");