diff options
| author | 2023-01-08 10:39:11 +0100 | |
|---|---|---|
| committer | 2023-01-08 10:39:11 +0100 | |
| commit | da7e57f4cc016c254899c9438de1cbc9871a93bc (patch) | |
| tree | cec0c0bd2ac110bc0ad7d420c656e93d2937e0e4 /xs_glob.h | |
| parent | Updated dependencies. (diff) | |
| download | snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.gz snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.xz snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.zip | |
Backport from xs.
Diffstat (limited to 'xs_glob.h')
| -rw-r--r-- | xs_glob.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -21,7 +21,7 @@ d_char *xs_glob_n(const char *spec, int basename, int reverse, int max) | |||
| 21 | if (glob(spec, 0, NULL, &globbuf) == 0) { | 21 | if (glob(spec, 0, NULL, &globbuf) == 0) { |
| 22 | int n; | 22 | int n; |
| 23 | 23 | ||
| 24 | if (max > globbuf.gl_pathc) | 24 | if (max > (int) globbuf.gl_pathc) |
| 25 | max = globbuf.gl_pathc; | 25 | max = globbuf.gl_pathc; |
| 26 | 26 | ||
| 27 | for (n = 0; n < max; n++) { | 27 | for (n = 0; n < max; n++) { |