From 18dad816bd67eb8f159c4b72b40275d7797cb475 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 27 Apr 2020 18:10:52 -0500 Subject: Add gratuitous typecast to work around insane warning. (long is 32 bits on 32 bit systems, just use long already) --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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 { -- cgit v1.2.3