Skip to content

Commit a6d63a2

Browse files
authored
Fix compiler warnings regarding loss of data (GH-23983)
1 parent 290f5ae commit a6d63a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_sqlite/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ pysqlite_connection_backup_impl(pysqlite_Connection *self,
16011601
{
16021602
int rc;
16031603
int callback_error = 0;
1604-
int sleep_ms = sleep * 1000.0;
1604+
int sleep_ms = (int)(sleep * 1000.0);
16051605
sqlite3 *bck_conn;
16061606
sqlite3_backup *bck_handle;
16071607

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ _PyUnicode_FromId(_Py_Identifier *id)
23022302
PyInterpreterState *interp = _PyInterpreterState_GET();
23032303
struct _Py_unicode_ids *ids = &interp->unicode.ids;
23042304

2305-
int index = _Py_atomic_size_get(&id->index);
2305+
Py_ssize_t index = _Py_atomic_size_get(&id->index);
23062306
if (index < 0) {
23072307
struct _Py_unicode_runtime_ids *rt_ids = &interp->runtime->unicode_ids;
23082308

0 commit comments

Comments
 (0)