[Python-checkins] commit of r41696 - python/trunk/Python/bltinmodule.c
neal.norwitz
python-checkins at python.org
Thu Dec 15 07:40:37 CET 2005
Author: neal.norwitz
Date: Thu Dec 15 07:40:36 2005
New Revision: 41696
Modified:
python/trunk/Python/bltinmodule.c
Log:
Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01
Pointed out from SF #1365916.
Backport candidate.
Modified: python/trunk/Python/bltinmodule.c
==============================================================================
--- python/trunk/Python/bltinmodule.c (original)
+++ python/trunk/Python/bltinmodule.c Thu Dec 15 07:40:36 2005
@@ -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;
More information about the Python-checkins
mailing list