summaryrefslogtreecommitdiff
path: root/xs_glob.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_glob.h')
-rw-r--r--xs_glob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_glob.h b/xs_glob.h
index 978c200..a69cba1 100644
--- a/xs_glob.h
+++ b/xs_glob.h
@@ -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++) {