From: Mark Dickinson Date: Tue, 6 Apr 2010 18:58:54 +0000 (+0000) Subject: Silence a 'comparison between signed and unsigned integer expressions' gcc warning. X-Git-Tag: v2.7b1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7;p=thirdparty%2FPython%2Fcpython.git Silence a 'comparison between signed and unsigned integer expressions' gcc warning. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 0e6e4e36b657..78a7792e8266 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2278,7 +2278,7 @@ _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e) break; } } - assert(1 <= x_size && x_size <= sizeof(x_digits)/sizeof(digit)); + assert(1 <= x_size && x_size <= (Py_ssize_t)(sizeof(x_digits)/sizeof(digit))); /* Round, and convert to double. */ x_digits[0] += half_even_correction[x_digits[0] & 7];