Commit dbc57b55 authored by Paul Eggert's avatar Paul Eggert
Browse files

file_name_case_insensitive_p int->long fix

* src/fileio.c (file_name_case_insensitive_p):
Don’t assume ‘long int’ fits in ‘int’.
parent 52172d23
Pipeline #3134 passed with stage
in 54 minutes and 34 seconds
...@@ -2391,11 +2391,11 @@ file_name_case_insensitive_p (const char *filename) ...@@ -2391,11 +2391,11 @@ file_name_case_insensitive_p (const char *filename)
support the latter. */ support the latter. */
#ifdef _PC_CASE_INSENSITIVE #ifdef _PC_CASE_INSENSITIVE
int res = pathconf (filename, _PC_CASE_INSENSITIVE); long int res = pathconf (filename, _PC_CASE_INSENSITIVE);
if (res >= 0) if (res >= 0)
return res > 0; return res > 0;
#elif defined _PC_CASE_SENSITIVE #elif defined _PC_CASE_SENSITIVE
int res = pathconf (filename, _PC_CASE_SENSITIVE); long int res = pathconf (filename, _PC_CASE_SENSITIVE);
if (res >= 0) if (res >= 0)
return res == 0; return res == 0;
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment