From: Peter Johnson Date: Fri, 11 Jul 2003 02:57:52 +0000 (-0000) Subject: BitVector_add() and BitVector_sub() take a *carry parameter as an input; we X-Git-Tag: v0.3.0~6^2~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9632f79ceb42c52fe8fabb4f555ff25ea1c1fc3d;p=yasm BitVector_add() and BitVector_sub() take a *carry parameter as an input; we were passing it uninitialized. svn path=/trunk/yasm/; revision=994 --- diff --git a/libyasm/intnum.c b/libyasm/intnum.c index 6c019440..50c05020 100644 --- a/libyasm/intnum.c +++ b/libyasm/intnum.c @@ -247,7 +247,7 @@ yasm_intnum_calc(yasm_intnum *acc, yasm_expr_op op, yasm_intnum *operand, { wordptr result = (wordptr)NULL, op1 = (wordptr)NULL, op2 = (wordptr)NULL; wordptr spare = (wordptr)NULL; - boolean carry; + boolean carry = 0; /* upsize to bitvector op if one of two parameters is bitvector already. * BitVector results must be calculated through intermediate storage.