]> git.eshelyaron.com Git - emacs.git/commitdiff
file_name_case_insensitive_p int->long fix
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Sep 2019 05:00:20 +0000 (22:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Sep 2019 05:00:42 +0000 (22:00 -0700)
* src/fileio.c (file_name_case_insensitive_p):
Don’t assume ‘long int’ fits in ‘int’.

src/fileio.c

index cbc0c89cf3e5f4a6034892805a640f8b14c9e9c8..da32d6c095caf8e6dd7e88e3cafa80abdd532724 100644 (file)
@@ -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