[Python-checkins] r45509 - python/trunk/Python/getargs.c
skip.montanaro
python-checkins at python.org
Tue Apr 18 02:57:15 CEST 2006
Author: skip.montanaro
Date: Tue Apr 18 02:57:15 2006
New Revision: 45509
Modified:
python/trunk/Python/getargs.c
Log:
C++ compiler cleanup: cast...
Modified: python/trunk/Python/getargs.c
==============================================================================
--- python/trunk/Python/getargs.c (original)
+++ python/trunk/Python/getargs.c Tue Apr 18 02:57:15 2006
@@ -645,8 +645,8 @@
unsigned int ival;
if (float_argument_error(arg))
return converterr("integer<I>", arg, msgbuf, bufsize);
- ival = PyInt_AsUnsignedLongMask(arg);
- if (ival == -1 && PyErr_Occurred())
+ ival = (unsigned int)PyInt_AsUnsignedLongMask(arg);
+ if (ival == (unsigned int)-1 && PyErr_Occurred())
return converterr("integer<I>", arg, msgbuf, bufsize);
else
*p = ival;
More information about the Python-checkins
mailing list