summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 17:36:54 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 17:36:54 (GMT)
commitf963c135979838893772619e83f94db97c536048 (patch)
treedac4c800ab36b8d2d05644a1c59e80c32e1f1c0b /Objects
parent904f5def5cc6da106a1e2e9feb0830cdb1433519 (diff)
downloadcpython-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.c2
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. */