Fix compiler warnings regarding loss of data (GH-23983)
This commit is contained in:
parent
290f5ae997
commit
a6d63a20df
|
@ -1601,7 +1601,7 @@ pysqlite_connection_backup_impl(pysqlite_Connection *self,
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
int callback_error = 0;
|
int callback_error = 0;
|
||||||
int sleep_ms = sleep * 1000.0;
|
int sleep_ms = (int)(sleep * 1000.0);
|
||||||
sqlite3 *bck_conn;
|
sqlite3 *bck_conn;
|
||||||
sqlite3_backup *bck_handle;
|
sqlite3_backup *bck_handle;
|
||||||
|
|
||||||
|
|
|
@ -2302,7 +2302,7 @@ _PyUnicode_FromId(_Py_Identifier *id)
|
||||||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||||
struct _Py_unicode_ids *ids = &interp->unicode.ids;
|
struct _Py_unicode_ids *ids = &interp->unicode.ids;
|
||||||
|
|
||||||
int index = _Py_atomic_size_get(&id->index);
|
Py_ssize_t index = _Py_atomic_size_get(&id->index);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
struct _Py_unicode_runtime_ids *rt_ids = &interp->runtime->unicode_ids;
|
struct _Py_unicode_runtime_ids *rt_ids = &interp->runtime->unicode_ids;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue