diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-15 06:40:36 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-15 06:40:36 (GMT) |
commit | 6f0d479c78280572196419917c367d581d6d0e3f (patch) | |
tree | a91d8308e0eeb5753553e3dccf37201e74a9d0fd /Python | |
parent | a716eabca79f5da1605d758654b74798b90931d9 (diff) | |
download | cpython-6f0d479c78280572196419917c367d581d6d0e3f.zip cpython-6f0d479c78280572196419917c367d581d6d0e3f.tar.gz cpython-6f0d479c78280572196419917c367d581d6d0e3f.tar.bz2 |
Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01
Pointed out from SF #1365916.
Backport candidate.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 50c7863..f8d23ad 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; |