Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-1635741: Fix compiler warning in _stat.c
  • Loading branch information
vstinner committed Apr 30, 2020
commit d4dc0ae9160a91f299d6abb9b6f4a4557f714e0c
2 changes: 1 addition & 1 deletion Modules/_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down