diff options
author | 2020-12-29 00:28:09 +0000 | |
---|---|---|
committer | 2020-12-29 00:28:09 +0000 | |
commit | a6d63a20df63b3fd33b5e1f629e7f96d00f6ae39 (patch) | |
tree | 5346adcba34854187047d8ac3efcec13f9debebf /Objects | |
parent | Use Py_NewRef in Modules/_struct.c (GH-23981) (diff) | |
download | cpython-a6d63a20df63b3fd33b5e1f629e7f96d00f6ae39.tar.gz cpython-a6d63a20df63b3fd33b5e1f629e7f96d00f6ae39.tar.bz2 cpython-a6d63a20df63b3fd33b5e1f629e7f96d00f6ae39.zip |
Fix compiler warnings regarding loss of data (GH-23983)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ad32a062d48..64fd408085d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |