commit | 674d56b82e59dfe481f355999b49a7b99b8d763d | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Jan 04 04:00:13 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Jan 04 04:00:13 2004 +0000 |
tree | 9a53f4004cf43881972f4affc3da4b30b271a009 | |
parent | 816ed1b0bdd3f50375bef334a41e5f20d58910f9 [diff] [blame] |
Convert return value to boolean.
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index f92358b..caf7499 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c
@@ -845,7 +845,7 @@ static PyObject * gc_isenabled(PyObject *self, PyObject *noargs) { - return Py_BuildValue("i", enabled); + return PyBool_FromLong((long)enabled); } PyDoc_STRVAR(gc_collect__doc__,