mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
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.
This commit is contained in:
parent
904f5def5c
commit
f963c13597
1 changed files with 1 additions and 1 deletions
|
|
@ -3522,7 +3522,7 @@ fast_mod(PyLongObject *a, PyLongObject *b)
|
||||||
mod = right - 1 - (left - 1) % right;
|
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. */
|
/* Fast floor division for single-digit longs. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue