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:
parent
d2dd3c0674
commit
b61ccd00ec
2 changed files with 3 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue