diff options
author | mischief <mischief@offblast.org> | 2014-02-01 12:14:30 -0800 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2014-02-01 12:14:30 -0800 |
commit | 08bb4afb528e91b46ae8eb13277ad51cf8d724ba (patch) | |
tree | 0d603d8286b0f50e9c13e1cd5b67950db560a5b5 /sys/src/cmd/acid | |
parent | abb4bad701e25836ebff6d8c8797710eb2a5ac27 (diff) |
acid: use correct print flags and casts for shorts in fmt
Diffstat (limited to 'sys/src/cmd/acid')
-rw-r--r-- | sys/src/cmd/acid/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/acid/builtin.c b/sys/src/cmd/acid/builtin.c index 039c6528d..0ebc11bbf 100644 --- a/sys/src/cmd/acid/builtin.c +++ b/sys/src/cmd/acid/builtin.c @@ -1009,10 +1009,10 @@ patom(char type, Store *res) Bprint(bout, "%d", (int)res->ival); break; case 'd': - Bprint(bout, "%d", (ushort)res->ival); + Bprint(bout, "%hd", (short)res->ival); break; case 'u': - Bprint(bout, "%d", (int)res->ival&0xffff); + Bprint(bout, "%hud", (ushort)res->ival); break; case 'U': Bprint(bout, "%lud", (ulong)res->ival); |