diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-21 16:16:44 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-21 16:16:44 (GMT) |
commit | 40ee861c0acea30e27f06f088b0713b617a4291c (patch) | |
tree | 840e802d934d75eee6ac7b5ae408609db4b6eb71 /Objects/longobject.c | |
parent | 0cfef2c3a44cd3ff9866ea9fe90d821919c3df34 (diff) | |
download | cpython-40ee861c0acea30e27f06f088b0713b617a4291c.zip cpython-40ee861c0acea30e27f06f088b0713b617a4291c.tar.gz cpython-40ee861c0acea30e27f06f088b0713b617a4291c.tar.bz2 |
Silence MSVC compiler warnings.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 23d2f13..d284b4f 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1413,8 +1413,9 @@ long_to_decimal_string(PyObject *aa, int addL) 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; |