From fc9d26902ba30340d1eef2153cc5823a53e72919 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 14 Dec 2018 11:00:23 +0100 Subject: bc: yet another library shrink function old new delta bc_lib 1604 1596 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8) Total: -8 bytes text data bss dec hex filename 980160 485 7296 987941 f1325 busybox_old 980152 485 7296 987933 f131d busybox_unstripped Signed-off-by: Denys Vlasenko --- miscutils/bc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/bc.c b/miscutils/bc.c index dd2d7f22c..f0c323d93 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -7236,7 +7236,7 @@ static const char bc_lib[] ALIGN1 = { "\n" "}" "\n" "scale=s" "\n" "ibase=b" -"\n" "if(n)return(-r/1)" +"\n" "if(n)r=-r" "\n" "return(r/1)" "\n" "}" "\n" "define c(x){" -- cgit v1.2.3