Commit 35c3f4f2 authored by Tim Peters's avatar Tim Peters

do_mkvalue(), 'I' and 'k' cases: squash legitimate

compiler warnings about mixing signed and unsigned types
in comparisons.
parent c3d12ac8
......@@ -307,7 +307,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
{
unsigned int n;
n = va_arg(*p_va, unsigned int);
if (n > PyInt_GetMax())
if (n > (unsigned long)PyInt_GetMax())
return PyLong_FromUnsignedLong((unsigned long)n);
else
return PyInt_FromLong(n);
......@@ -320,7 +320,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
{
unsigned long n;
n = va_arg(*p_va, unsigned long);
if (n > PyInt_GetMax())
if (n > (unsigned long)PyInt_GetMax())
return PyLong_FromUnsignedLong(n);
else
return PyInt_FromLong(n);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment