Silence a 'comparison between signed and unsigned integer expressions' gcc warning.

This commit is contained in:
Mark Dickinson 2010-04-06 18:58:54 +00:00
parent a5db4310f3
commit ea7e5510aa
1 changed files with 1 additions and 1 deletions

View File

@ -2278,7 +2278,7 @@ _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e)
break; 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. */ /* Round, and convert to double. */
x_digits[0] += half_even_correction[x_digits[0] & 7]; x_digits[0] += half_even_correction[x_digits[0] & 7];