From db8d607514c684fe208e8d8cf02864731a123bf6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 27 Dec 2018 18:08:30 +0100 Subject: bc: G.prog.zero does not need initializing num[] vector function old new delta bc_vm_init 676 665 -11 Signed-off-by: Denys Vlasenko --- miscutils/bc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miscutils/bc.c b/miscutils/bc.c index 9a0db21..09cc452 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -7156,7 +7156,7 @@ static void bc_program_free(void) bc_vec_free(&G.prog.results); bc_vec_free(&G.prog.exestack); IF_BC(bc_num_free(&G.prog.last);) - IF_BC(bc_num_free(&G.prog.zero);) + //IF_BC(bc_num_free(&G.prog.zero);) IF_BC(bc_num_free(&G.prog.one);) bc_vec_free(&G.input_buffer); } @@ -7184,7 +7184,7 @@ static void bc_program_init(void) IF_BC(bc_num_init_DEF_SIZE(&G.prog.last);) //IF_BC(bc_num_zero(&G.prog.last);) - already is - bc_num_init_DEF_SIZE(&G.prog.zero); + //bc_num_init_DEF_SIZE(&G.prog.zero); - not needed //bc_num_zero(&G.prog.zero); - already is IF_BC(bc_num_init_DEF_SIZE(&G.prog.one);) -- cgit v1.1