ref: 08bb4afb528e91b46ae8eb13277ad51cf8d724ba
parent: abb4bad701e25836ebff6d8c8797710eb2a5ac27
author: mischief <mischief@offblast.org>
date: Sat Feb 1 07:14:30 EST 2014
acid: use correct print flags and casts for shorts in fmt
--- a/sys/src/cmd/acid/builtin.c
+++ b/sys/src/cmd/acid/builtin.c
@@ -1009,10 +1009,10 @@
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);
--
⑨