diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-04-30 10:22:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 10:22:17 (GMT) |
commit | ca405017d5e776a2e3d9291236e62d2e09489dd2 (patch) | |
tree | 54f7f13f52fde86c9ec8d89dd9a13c18a6ca3e72 /Grammar | |
parent | 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60 (diff) | |
download | cpython-ca405017d5e776a2e3d9291236e62d2e09489dd2.zip cpython-ca405017d5e776a2e3d9291236e62d2e09489dd2.tar.gz cpython-ca405017d5e776a2e3d9291236e62d2e09489dd2.tar.bz2 |
bpo-27645, sqlite: Fix integer overflow on sleep (#6594)
Use the _PyTime_t type and round away from zero (ROUND_UP,
_PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python
object to seconds and then to milliseconds. Raise an OverflowError in
case of overflow.
Previously the (int)double conversion rounded towards zero
(ROUND_DOWN).
Diffstat (limited to 'Grammar')
0 files changed, 0 insertions, 0 deletions