mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
This commit is contained in:
parent
12174a5dca
commit
706768c687
13 changed files with 24 additions and 21 deletions
|
@ -2000,7 +2000,7 @@ array_reconstructor(PyObject *self, PyObject *args)
|
|||
*/
|
||||
for (descr = descriptors; descr->typecode != '\0'; descr++) {
|
||||
if (descr->is_integer_type &&
|
||||
descr->itemsize == mf_descr.size &&
|
||||
(size_t)descr->itemsize == mf_descr.size &&
|
||||
descr->is_signed == mf_descr.is_signed)
|
||||
typecode = descr->typecode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue