bpo-1635741: Fix compiler warning in _stat.c (GH-19822)
Cast Py_ARRAY_LENGTH() size_t to int explicitly.
This commit is contained in:
parent
3c7f9db850
commit
b66c0ff8af
|
@ -563,7 +563,7 @@ stat_exec(PyObject *module)
|
|||
"ST_CTIME"
|
||||
};
|
||||
|
||||
for (int i = 0; i < Py_ARRAY_LENGTH(st_constants); i++) {
|
||||
for (int i = 0; i < (int)Py_ARRAY_LENGTH(st_constants); i++) {
|
||||
if (PyModule_AddIntConstant(module, st_constants[i], i) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue