summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-21 16:18:27 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-21 16:18:27 (GMT)
commit741984dc1771519be367bde5aa3a7655366bed98 (patch)
treeba777b4eca5efb56bdc1b577457c8dd8d181de2f /Objects/longobject.c
parent31d4607db195a0facc48e1b9095260a146097800 (diff)
downloadcpython-741984dc1771519be367bde5aa3a7655366bed98.zip
cpython-741984dc1771519be367bde5aa3a7655366bed98.tar.gz
cpython-741984dc1771519be367bde5aa3a7655366bed98.tar.bz2
Merged revisions 75003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75003 | mark.dickinson | 2009-09-21 17:16:44 +0100 (Mon, 21 Sep 2009) | 1 line Silence MSVC compiler warnings. ........
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index e56602e..f7df699 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1702,8 +1702,9 @@ long_to_decimal_string(PyObject *aa)
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;