From 08a1d9cafc5e713957d7ddd2b29ea75c3d073d96 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 31 Jan 2003 21:45:13 +0000 Subject: [PATCH] Squash compiler wng about signed/unsigned comparison mismatch. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 2279fc33dbf..78357843223 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;