diff Python/getargs.c @ 43651:003d35215ef2

#1316: remove redundant PyLong_Check calls when PyInt_Check was already called.
author Georg Brandl <georg@python.org>
date Tue, 23 Oct 2007 19:24:22 +0000
parents ac62eb267206
children 0d462d789b18
line wrap: on
line diff
--- a/Python/getargs.c	Tue Oct 23 18:26:17 2007 +0000
+++ b/Python/getargs.c	Tue Oct 23 19:24:22 2007 +0000
@@ -696,9 +696,7 @@
 	case 'k': { /* long sized bitfield */
 		unsigned long *p = va_arg(*p_va, unsigned long *);
 		unsigned long ival;
-		if (PyInt_Check(arg))
-			ival = PyInt_AsUnsignedLongMask(arg);
-		else if (PyLong_Check(arg))
+		if (PyLong_Check(arg))
 			ival = PyLong_AsUnsignedLongMask(arg);
 		else
 			return converterr("integer<k>", arg, msgbuf, bufsize);