diff options
| author | Paul Eggert | 2019-09-14 22:00:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-09-14 22:00:42 -0700 |
| commit | dbc57b5573e2978581439fe8b81da80672c4ecd8 (patch) | |
| tree | 732ca21ef75737a434d6f2e83ad1d9fc40204338 /src | |
| parent | 52172d234015776bcc595c731477b98fa2949e50 (diff) | |
| download | emacs-dbc57b5573e2978581439fe8b81da80672c4ecd8.tar.gz emacs-dbc57b5573e2978581439fe8b81da80672c4ecd8.zip | |
file_name_case_insensitive_p int->long fix
* src/fileio.c (file_name_case_insensitive_p):
Don’t assume ‘long int’ fits in ‘int’.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 4 |
1 files 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) | |||
| 2391 | support the latter. */ | 2391 | support the latter. */ |
| 2392 | 2392 | ||
| 2393 | #ifdef _PC_CASE_INSENSITIVE | 2393 | #ifdef _PC_CASE_INSENSITIVE |
| 2394 | int res = pathconf (filename, _PC_CASE_INSENSITIVE); | 2394 | long int res = pathconf (filename, _PC_CASE_INSENSITIVE); |
| 2395 | if (res >= 0) | 2395 | if (res >= 0) |
| 2396 | return res > 0; | 2396 | return res > 0; |
| 2397 | #elif defined _PC_CASE_SENSITIVE | 2397 | #elif defined _PC_CASE_SENSITIVE |
| 2398 | int res = pathconf (filename, _PC_CASE_SENSITIVE); | 2398 | long int res = pathconf (filename, _PC_CASE_SENSITIVE); |
| 2399 | if (res >= 0) | 2399 | if (res >= 0) |
| 2400 | return res == 0; | 2400 | return res == 0; |
| 2401 | #endif | 2401 | #endif |