From: Tim Peters Date: Fri, 31 Jan 2003 21:45:13 +0000 (+0000) Subject: Squash compiler wng about signed/unsigned comparison mismatch. X-Git-Tag: v2.3c1~2142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08a1d9cafc5e713957d7ddd2b29ea75c3d073d96;p=thirdparty%2FPython%2Fcpython.git Squash compiler wng about signed/unsigned comparison mismatch. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 2279fc33dbf6..78357843223b 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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;