C++ compiler cleanup: cast...
diff --git a/Python/getargs.c b/Python/getargs.c
index f5e2154..1552790 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -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;