summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-05-01 21:31:53 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-05-01 21:31:53 (GMT)
commitfc61f9a36e937221f0bbee02afd419055a7cdb6f (patch)
tree5191a33ac33e6eba4a2b371099aa9563e9b829a8 /Objects/longobject.c
parent2448f1b655d03c35961c737e979e2fd30c954155 (diff)
downloadcpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.zip
cpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.tar.gz
cpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.tar.bz2
Silence compiler warnings in VC 7.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 663befc..15743f7 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1440,7 +1440,7 @@ x_divrem(PyLongObject *v1, PyLongObject *w1, PyLongObject **prem)
digit zz = (digit) (z >> SHIFT);
carry += v->ob_digit[i+k] - z
+ ((twodigits)zz << SHIFT);
- v->ob_digit[i+k] = carry & MASK;
+ v->ob_digit[i+k] = (digit)(carry & MASK);
carry = Py_ARITHMETIC_RIGHT_SHIFT(BASE_TWODIGITS_TYPE,
carry, SHIFT);
carry -= zz;
@@ -1459,7 +1459,7 @@ x_divrem(PyLongObject *v1, PyLongObject *w1, PyLongObject **prem)
carry = 0;
for (i = 0; i < size_w && i+k < size_v; ++i) {
carry += v->ob_digit[i+k] + w->ob_digit[i];
- v->ob_digit[i+k] = carry & MASK;
+ v->ob_digit[i+k] = (digit)(carry & MASK);
carry = Py_ARITHMETIC_RIGHT_SHIFT(
BASE_TWODIGITS_TYPE,
carry, SHIFT);