]> granicus.if.org Git - python/commitdiff
Squash compiler wng about signed/unsigned comparison mismatch.
authorTim Peters <tim.peters@gmail.com>
Fri, 31 Jan 2003 21:45:13 +0000 (21:45 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 31 Jan 2003 21:45:13 +0000 (21:45 +0000)
Objects/longobject.c

index 2279fc33dbf68a8ede087b835837f98e0a082c12..78357843223ba11a6c414a14ba586421195e2f2a 100644 (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;