commit | ea7e5510aa6d42bd8f7fcc2f22fea972f2b5c8c7 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 06 18:58:54 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 06 18:58:54 2010 +0000 |
tree | 5ee9a325e11546e675e65c1939d18a774ecb1280 | |
parent | a5db4310f312727b49f5ea5d32e575be6b91bdf8 [diff] [blame] |
Silence a 'comparison between signed and unsigned integer expressions' gcc warning.
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 @@ 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];