diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-05-01 21:31:53 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-05-01 21:31:53 (GMT) |
commit | fc61f9a36e937221f0bbee02afd419055a7cdb6f (patch) | |
tree | 5191a33ac33e6eba4a2b371099aa9563e9b829a8 /Objects | |
parent | 2448f1b655d03c35961c737e979e2fd30c954155 (diff) | |
download | cpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.zip cpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.tar.gz cpython-fc61f9a36e937221f0bbee02afd419055a7cdb6f.tar.bz2 |
Silence compiler warnings in VC 7.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 4 |
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); |