diff options
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++) { |