Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 36115:03dbec0d9504 legacy-trunk
do_mkvalue(), 'I' and 'k' cases: squash legitimate
compiler warnings about mixing signed and unsigned types
in comparisons.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 24 Dec 2005 06:23:41 +0000 |
| parents | 9541369b0dca |
| children | 7fdc639bc5b4 |
line wrap: on
line diff
--- a/Python/modsupport.c Sat Dec 24 06:03:06 2005 +0000 +++ b/Python/modsupport.c Sat Dec 24 06:23:41 2005 +0000 @@ -307,7 +307,7 @@ { 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 @@ { 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);
