From: Neal Norwitz Date: Thu, 15 Dec 2005 06:40:36 +0000 (+0000) Subject: Fix an int/long mismatch identified here: X-Git-Tag: v2.5a0~1026 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f0d479c78280572196419917c367d581d6d0e3f;p=thirdparty%2FPython%2Fcpython.git Fix an int/long mismatch identified here: http://www.tortall.net/mu/blog/2005/12/01 Pointed out from SF #1365916. Backport candidate. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 50c7863fa7cc..f8d23ad4cc90 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1908,8 +1908,9 @@ builtin_sorted(PyObject *self, PyObject *args, PyObject *kwds) PyObject *newlist, *v, *seq, *compare=NULL, *keyfunc=NULL, *newargs; PyObject *callable; static const char *kwlist[] = {"iterable", "cmp", "key", "reverse", 0}; - long reverse; + int reverse; + /* args 1-4 should match listsort in Objects/listobject.c */ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOi:sorted", kwlist, &seq, &compare, &keyfunc, &reverse)) return NULL;