X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/blobdiff_plain/8963e6870299fa42fe81f2b6acc3fcddf2058a9b..58f45a3bba58c90874dcf2fdc78ee75a7603d601:/util.c diff --git a/util.c b/util.c index 723c819..aa75ea7 100644 --- a/util.c +++ b/util.c @@ -68,8 +68,8 @@ PyObject *getk64(kludge64 u) Py_DECREF(i); i = t; if ((rc = PyNumber_Int(i)) == 0) goto end; end: - if (i) Py_DECREF(i); - if (j) Py_DECREF(j); + Py_XDECREF(i); + Py_XDECREF(j); return (rc); #endif } @@ -185,7 +185,7 @@ int convk64(PyObject *o, void *pp) rc = 1; end: - if (i) Py_DECREF(i); + Py_XDECREF(i); return (rc); } @@ -504,7 +504,7 @@ static PyTypeObject itemiter_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Iterates over the keys of a mapping.", + "Iterates over the items of a mapping.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -562,7 +562,7 @@ static PyTypeObject valiter_pytype_skel = { Py_TPFLAGS_BASETYPE, /* @tp_doc@ */ -"Iterates over the values of a mapping.", + "Iterates over the values of a mapping.", 0, /* @tp_traverse@ */ 0, /* @tp_clear@ */ @@ -845,7 +845,7 @@ static PyObject *meth__set_home_module(PyObject *me, PyObject *arg) static const PyMethodDef methods[] = { #define METHNAME(func) meth_##func - METH (_set_home_module, "_set_home_module(MOD)") + METH (_set_home_module, "_set_home_module(MOD)") #undef METHNAME { 0 } };