Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 36034:fdf0ac36eb74 legacy-trunk
Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01
Pointed out from SF #1365916.
Backport candidate.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Thu, 15 Dec 2005 06:40:36 +0000 |
| parents | 9541369b0dca |
| children | 20f75d5e79e9 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Thu Dec 15 05:25:09 2005 +0000 +++ b/Python/bltinmodule.c Thu Dec 15 06:40:36 2005 +0000 @@ -1908,8 +1908,9 @@ 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;
