From dbc57b5573e2978581439fe8b81da80672c4ecd8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 14 Sep 2019 22:00:20 -0700 Subject: [PATCH] file_name_case_insensitive_p int->long fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/fileio.c (file_name_case_insensitive_p): Don’t assume ‘long int’ fits in ‘int’. --- src/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index cbc0c89cf3e..da32d6c095c 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2391,11 +2391,11 @@ file_name_case_insensitive_p (const char *filename) support the latter. */ #ifdef _PC_CASE_INSENSITIVE - int res = pathconf (filename, _PC_CASE_INSENSITIVE); + long int res = pathconf (filename, _PC_CASE_INSENSITIVE); if (res >= 0) return res > 0; #elif defined _PC_CASE_SENSITIVE - int res = pathconf (filename, _PC_CASE_SENSITIVE); + long int res = pathconf (filename, _PC_CASE_SENSITIVE); if (res >= 0) return res == 0; #endif -- 2.39.5