From: Mark Dickinson Date: Mon, 21 Sep 2009 16:16:44 +0000 (+0000) Subject: Silence MSVC compiler warnings. X-Git-Tag: v2.7a1~475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40ee861c0acea30e27f06f088b0713b617a4291c;p=python Silence MSVC compiler warnings. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 23d2f1336f..d284b4f376 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;