SIGN IN SIGN UP

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).
V
Victor Stinner committed
ca405017d5e776a2e3d9291236e62d2e09489dd2
Parent: 5ff3a16
Committed by GitHub <noreply@github.com> on 4/30/2018, 10:22:17 AM