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)
if (glob(spec, 0, NULL, &globbuf) == 0) {
int n;
- if (max > globbuf.gl_pathc)
+ if (max > (int) globbuf.gl_pathc)
max = globbuf.gl_pathc;
for (n = 0; n < max; n++) {