file_name_case_insensitive_p int->long fix
* src/fileio.c (file_name_case_insensitive_p): Don’t assume ‘long int’ fits in ‘int’.
This commit is contained in:
parent
52172d2340
commit
dbc57b5573
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue