]> granicus.if.org Git - yasm/commitdiff
BUGFIX: In yasm_intnum_calc(), use operand->val.bv instead of acc->val.bv if
authorPeter Johnson <peter@tortall.net>
Thu, 10 Jul 2003 04:54:55 +0000 (04:54 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 10 Jul 2003 04:54:55 +0000 (04:54 -0000)
the operand is already a bitvector.

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

libyasm/intnum.c

index eff5f4d483af5006e54699486a1cfaf9771e8a26..6c01944085ca4ef7c88e39bee289f76a7eef429b 100644 (file)
@@ -265,7 +265,7 @@ yasm_intnum_calc(yasm_intnum *acc, yasm_expr_op op, yasm_intnum *operand,
 
        if (operand) {
            if (operand->type == INTNUM_BV)
-               op2 = acc->val.bv;
+               op2 = operand->val.bv;
            else {
                op2 = BitVector_Create(BITVECT_ALLOC_SIZE, TRUE);
                BitVector_Chunk_Store(op2, 32, 0, operand->val.ul);