mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix compiler warnings regarding loss of data (GH-23983)
This commit is contained in:
parent
290f5ae997
commit
a6d63a20df
2 changed files with 2 additions and 2 deletions
|
@ -2302,7 +2302,7 @@ _PyUnicode_FromId(_Py_Identifier *id)
|
|||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
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) {
|
||||
struct _Py_unicode_runtime_ids *rt_ids = &interp->runtime->unicode_ids;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue