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:
Dave Beazley 2000-09-25 12:26:07 +00:00
commit 8413325366

View file

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