From d4dc0ae9160a91f299d6abb9b6f4a4557f714e0c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 30 Apr 2020 23:00:35 +0200 Subject: [PATCH] bpo-1635741: Fix compiler warning in _stat.c --- Modules/_stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_stat.c b/Modules/_stat.c index 45a4e080c77461..c7090c02688dee 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; }