Squash compiler wng about signed/unsigned comparison mismatch.

This commit is contained in:
Tim Peters 2003-01-31 21:45:13 +00:00
parent 8e0ad0cb0b
commit 08a1d9cafc

View File

@ -287,7 +287,7 @@ _PyLong_NumBits(PyObject *vv)
digit msd = v->ob_digit[ndigits - 1];
result = (ndigits - 1) * SHIFT;
if (result / SHIFT != ndigits - 1)
if (result / SHIFT != (size_t)ndigits - 1)
goto Overflow;
do {
++result;