diff options
author | Skip Montanaro <skip@pobox.com> | 2006-04-18 00:57:15 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2006-04-18 00:57:15 (GMT) |
commit | b507972cddd6a204d252ea87b839a38fb51225fe (patch) | |
tree | 34a1517652f45dea51c46acda4733ba11bd71748 | |
parent | 53a6d1de831a4d25cebf7b957b52c42d1e9e8bdb (diff) | |
download | cpython-b507972cddd6a204d252ea87b839a38fb51225fe.zip cpython-b507972cddd6a204d252ea87b839a38fb51225fe.tar.gz cpython-b507972cddd6a204d252ea87b839a38fb51225fe.tar.bz2 |
C++ compiler cleanup: cast...
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, 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; |