[Python-checkins] r75003 - python/trunk/Objects/longobject.c
mark.dickinson
python-checkins at python.org
Mon Sep 21 18:16:44 CEST 2009
Author: mark.dickinson
Date: Mon Sep 21 18:16:44 2009
New Revision: 75003
Log:
Silence MSVC compiler warnings.
Modified:
python/trunk/Objects/longobject.c
Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c (original)
+++ python/trunk/Objects/longobject.c Mon Sep 21 18:16:44 2009
@@ -1413,8 +1413,9 @@
digit hi = pin[i];
for (j = 0; j < size; j++) {
twodigits z = (twodigits)pout[j] << PyLong_SHIFT | hi;
- hi = z / _PyLong_DECIMAL_BASE;
- pout[j] = z - (twodigits)hi * _PyLong_DECIMAL_BASE;
+ hi = (digit)(z / _PyLong_DECIMAL_BASE);
+ pout[j] = (digit)(z - (twodigits)hi *
+ _PyLong_DECIMAL_BASE);
}
while (hi) {
pout[size++] = hi % _PyLong_DECIMAL_BASE;
More information about the Python-checkins
mailing list