cpython/Modules/_sqlite
Victor Stinner ca405017d5
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).
2018-04-30 12:22:17 +02:00
..
cache.c
cache.h
connection.c bpo-27645, sqlite: Fix integer overflow on sleep (#6594) 2018-04-30 12:22:17 +02:00
connection.h
cursor.c
cursor.h
microprotocols.c
microprotocols.h
module.c
module.h
prepare_protocol.c
prepare_protocol.h
row.c bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030) 2018-04-29 21:59:33 +03:00
row.h
statement.c
statement.h
util.c
util.h