diff Python/bltinmodule.c @ 39906:c11cae2b9a75 2.4

[Backport rev. 41696 by neal.norwitz] Fix an int/long mismatch identified here: http://www.tortall.net/mu/blog/2005/12/01 Pointed out from SF #1365916. Backport candidate.
author Andrew M. Kuchling <amk@amk.ca>
date Fri, 29 Sep 2006 17:52:32 +0000
parents 214e4a4384f1
children 3b57eecdc504
line wrap: on
line diff
--- a/Python/bltinmodule.c	Fri Sep 29 17:42:30 2006 +0000
+++ b/Python/bltinmodule.c	Fri Sep 29 17:52:32 2006 +0000
@@ -1811,9 +1811,10 @@
 	PyObject *newlist, *v, *seq, *compare=NULL, *keyfunc=NULL, *newargs;
 	PyObject *callable;
 	static char *kwlist[] = {"iterable", "cmp", "key", "reverse", 0};
-	long reverse;
+	int reverse;
 
 	if (args != NULL) {
+	        /* 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;