From 7c77a808e82dab8956882b2896aa9cabb5d3ad40 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 10 Jul 2003 04:54:55 +0000 Subject: [PATCH] BUGFIX: In yasm_intnum_calc(), use operand->val.bv instead of acc->val.bv if the operand is already a bitvector. svn path=/trunk/yasm/; revision=991 --- libyasm/intnum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyasm/intnum.c b/libyasm/intnum.c index eff5f4d4..6c019440 100644 --- a/libyasm/intnum.c +++ b/libyasm/intnum.c @@ -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); -- 2.40.0