[Python-checkins] r79856 - python/trunk/Objects/longobject.c
mark.dickinson
python-checkins at python.org
Tue Apr 6 20:58:55 CEST 2010
Author: mark.dickinson
Date: Tue Apr 6 20:58:54 2010
New Revision: 79856
Log:
Silence a 'comparison between signed and unsigned integer expressions' gcc warning.
Modified:
python/trunk/Objects/longobject.c
Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c (original)
+++ python/trunk/Objects/longobject.c Tue Apr 6 20:58:54 2010
@@ -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];
More information about the Python-checkins
mailing list