mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
C++ compiler cleanup: cast...
This commit is contained in:
parent
53a6d1de83
commit
b507972cdd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue