From: Denys Vlasenko Date: Fri, 14 Dec 2018 10:00:23 +0000 (+0100) Subject: bc: yet another library shrink X-Git-Tag: 1_30_0~172 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc9d26902ba30340d1eef2153cc5823a53e72919;p=oweals%2Fbusybox.git 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 --- 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){"