commit | a6d63a20df63b3fd33b5e1f629e7f96d00f6ae39 | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Tue Dec 29 00:28:09 2020 +0000 |
committer | GitHub <noreply@github.com> | Tue Dec 29 00:28:09 2020 +0000 |
tree | 5346adcba34854187047d8ac3efcec13f9debebf | |
parent | 290f5ae9977488d0faa0890d596aeed88e97355f [diff] [blame] |
Fix compiler warnings regarding loss of data (GH-23983)
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 5c7b4ee..1e23dac 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c
@@ -1601,7 +1601,7 @@ pysqlite_connection_backup_impl(pysqlite_Connection *self, { int rc; int callback_error = 0; - int sleep_ms = sleep * 1000.0; + int sleep_ms = (int)(sleep * 1000.0); sqlite3 *bck_conn; sqlite3_backup *bck_handle;