Commit b24aee72 authored by Tim Peters's avatar Tim Peters

Squash compiler wng about signed/unsigned comparison mismatch.

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