Commit 5df112ee authored by Victor Stinner's avatar Victor Stinner

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.
parent 185ecdc5
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment