diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-30 22:44:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 22:44:03 (GMT) |
commit | b66c0ff8af0c1a4adc6908897b2d05afc78cc27e (patch) | |
tree | 57c0f86b95edccd4f190bae92fed5dca2929f029 /Modules/_stat.c | |
parent | 3c7f9db85095952821f9d106dd874f75662ce7ec (diff) | |
download | cpython-b66c0ff8af0c1a4adc6908897b2d05afc78cc27e.zip cpython-b66c0ff8af0c1a4adc6908897b2d05afc78cc27e.tar.gz cpython-b66c0ff8af0c1a4adc6908897b2d05afc78cc27e.tar.bz2 |
bpo-1635741: Fix compiler warning in _stat.c (GH-19822)
Cast Py_ARRAY_LENGTH() size_t to int explicitly.
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r-- | Modules/_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c index 45a4e08..c7090c0 100644 --- a/Modules/_stat.c +++ b/Modules/_stat.c @@ -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; } |