summaryrefslogtreecommitdiff
path: root/xs_glob.h
diff options
context:
space:
mode:
authorGravatar default2023-01-08 10:39:11 +0100
committerGravatar default2023-01-08 10:39:11 +0100
commitda7e57f4cc016c254899c9438de1cbc9871a93bc (patch)
treecec0c0bd2ac110bc0ad7d420c656e93d2937e0e4 /xs_glob.h
parentUpdated dependencies. (diff)
downloadpenes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.gz
penes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.xz
penes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.zip
Backport from xs.
Diffstat (limited to '')
-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++) {