diff options
author | Rob Landley <rob@landley.net> | 2020-04-27 18:10:52 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-04-27 18:10:52 -0500 |
commit | 18dad816bd67eb8f159c4b72b40275d7797cb475 (patch) | |
tree | d03411bf5a0c67e6a511ca17b3191a0abda30a85 /toys | |
parent | 7e7ab8fd29292a123dc81eefe29e14adc731b293 (diff) | |
download | toybox-18dad816bd67eb8f159c4b72b40275d7797cb475.tar.gz |
Add gratuitous typecast to work around insane warning.
(long is 32 bits on 32 bit systems, just use long already)
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/sh.c | 2 |
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 { |