From ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Tue, 6 Apr 2010 18:58:54 +0000 Subject: Silence a 'comparison between signed and unsigned integer expressions' gcc warning. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 0e6e4e3..78a7792 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]; -- cgit v0.12