aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-11-18 15:15:39 -0600
committerRob Landley <rob@landley.net>2016-11-18 15:15:39 -0600
commit46ae1aaea845d4ea3e1cd2b3e005fdb6a6428053 (patch)
treed03a0002a6a407fbc300b6404d40a4c880b0526a /toys/posix
parenta38044550a5279181778d542b11abaf3ec2b0661 (diff)
downloadtoybox-46ae1aaea845d4ea3e1cd2b3e005fdb6a6428053.tar.gz
"printf %x 64" wasn't working right on 32 bit because a variable type was wrong.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/printf.c b/toys/posix/printf.c
index 2dd1e2f1..5448d8c7 100644
--- a/toys/posix/printf.c
+++ b/toys/posix/printf.c
@@ -119,7 +119,7 @@ void printf_main(void)
} else if (c == 'c') printf(toybuf, wp[0], wp[1], *aa);
else if (c == 's') printf(toybuf, wp[0], wp[1], aa);
else if (strchr("diouxX", c)) {
- long ll;
+ long long ll;
if (*aa == '\'' || *aa == '"') ll = aa[1];
else ll = strtoll(aa, &end, 0);