summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
commit1109fbca76d08bb2f11f2899580d2ab7dbe796fa (patch)
treed52f999b597674ea5648059207a1eccaf173e141 /Objects/funcobject.c
parentbb3649e2ba386adc16fadc2e0d1f2606c047e6aa (diff)
downloadcpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.zip
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.gz
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.bz2
Make new gcc -Wall happy
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index be67259..d62dd08 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -110,8 +110,9 @@ PyFunction_SetDefaults(op, defaults)
}
if (defaults == Py_None)
defaults = NULL;
- else if (PyTuple_Check(defaults))
+ else if (PyTuple_Check(defaults)) {
Py_XINCREF(defaults);
+ }
else {
PyErr_SetString(PyExc_SystemError, "non-tuple default args");
return -1;