diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-04-30 12:22:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 12:22:17 +0200 |
commit | ca405017d5e776a2e3d9291236e62d2e09489dd2 (patch) | |
tree | 54f7f13f52fde86c9ec8d89dd9a13c18a6ca3e72 /Python/hamt.c | |
parent | 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60 (diff) | |
download | cpython-git-ca405017d5e776a2e3d9291236e62d2e09489dd2.tar.gz |
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 'Python/hamt.c')
0 files changed, 0 insertions, 0 deletions