mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ stat_exec(PyObject *module)
|
||||||
"ST_CTIME"
|
"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) {
|
if (PyModule_AddIntConstant(module, st_constants[i], i) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue