aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/pending/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c
index 142b150c..e5d7227f 100644
--- a/toys/pending/sh.c
+++ b/toys/pending/sh.c
@@ -909,7 +909,7 @@ dprintf(2, "TODO: do math for %.*s\n", kk, s);
if (ss[jj]) ifs = (void *)1;
} else if (*ss == '#') {
if (jj == 2 && (*ss == '@' || *ss == '*')) jj--;
- else ifs = xmprintf("%ld", strlen(getvar(ss) ? : ""));
+ else ifs = xmprintf("%ld", (long)strlen(getvar(ss) ? : ""));
}
}
} else {