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
This commit is contained in:
Stefan Zager 2011-08-30 21:37:16 +00:00
commit b61ccd00ec
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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");