]> granicus.if.org Git - yasm/commitdiff
BitVector_add() and BitVector_sub() take a *carry parameter as an input; we
authorPeter Johnson <peter@tortall.net>
Fri, 11 Jul 2003 02:57:52 +0000 (02:57 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 11 Jul 2003 02:57:52 +0000 (02:57 -0000)
were passing it uninitialized.

svn path=/trunk/yasm/; revision=994

libyasm/intnum.c

index 6c01944085ca4ef7c88e39bee289f76a7eef429b..50c050200615914a637dc35a0656b8c00f13fe77 100644 (file)
@@ -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.