From 8413325366d2ad50f885901eb7fe71ed262ec98e Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Mon, 25 Sep 2000 12:26:07 +0000 Subject: [PATCH] Fixed ambiguous else. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@890 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/python.swg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/python/python.swg b/Lib/python/python.swg index 273f273ab..3634dc349 100644 --- a/Lib/python/python.swg +++ b/Lib/python/python.swg @@ -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