Fixed ambiguous else.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
94651ffbd5
commit
8413325366
1 changed files with 3 additions and 3 deletions
|
|
@ -194,10 +194,10 @@ SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
|||
if (*c != '_') {
|
||||
*ptr = (void *) 0;
|
||||
if (strcmp(c,"NULL") == 0) {
|
||||
if (newref) Py_DECREF(obj);
|
||||
if (newref) { Py_DECREF(obj); }
|
||||
return 0;
|
||||
} else {
|
||||
if (newref) Py_DECREF(obj);
|
||||
if (newref) { Py_DECREF(obj); }
|
||||
goto type_error;
|
||||
}
|
||||
}
|
||||
|
|
@ -213,7 +213,7 @@ SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
|||
c++;
|
||||
}
|
||||
*ptr = (void *) p;
|
||||
if (newref) Py_DECREF(obj);
|
||||
if (newref) { Py_DECREF(obj); }
|
||||
#endif
|
||||
|
||||
#ifdef SWIG_COBJECT_TYPES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue