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