summaryrefslogtreecommitdiff
path: root/xs_glob.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-08 10:39:11 +0100
committerdefault <nobody@localhost>2023-01-08 10:39:11 +0100
commitda7e57f4cc016c254899c9438de1cbc9871a93bc (patch)
treecec0c0bd2ac110bc0ad7d420c656e93d2937e0e4 /xs_glob.h
parent631f16aea860377ad8bdfbce40a0df5b2bfb9494 (diff)
Backport from xs.
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++) {