diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 17:36:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 17:36:54 (GMT) |
commit | f963c135979838893772619e83f94db97c536048 (patch) | |
tree | dac4c800ab36b8d2d05644a1c59e80c32e1f1c0b /Objects | |
parent | 904f5def5cc6da106a1e2e9feb0830cdb1433519 (diff) | |
download | cpython-f963c135979838893772619e83f94db97c536048.zip cpython-f963c135979838893772619e83f94db97c536048.tar.gz cpython-f963c135979838893772619e83f94db97c536048.tar.bz2 |
longobject.c: fix compilation warning on Windows 64-bit
We know that Py_SIZE(b) is -1 or 1 an so fits into the sdigit type.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 3f9837f..70d8cfc 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3522,7 +3522,7 @@ fast_mod(PyLongObject *a, PyLongObject *b) mod = right - 1 - (left - 1) % right; } - return PyLong_FromLong(mod * Py_SIZE(b)); + return PyLong_FromLong(mod * (sdigit)Py_SIZE(b)); } /* Fast floor division for single-digit longs. */ |