]> granicus.if.org Git - yasm/commitdiff
yasm_intnum_set_int(): Oops; compile before committing next time.
authorPeter Johnson <peter@tortall.net>
Mon, 12 Jun 2006 05:30:22 +0000 (05:30 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 12 Jun 2006 05:30:22 +0000 (05:30 -0000)
svn path=/branches/new-optimizer/; revision=1574

libyasm/intnum.c

index 8b1074be07e85eb995cfc420885219f22a2e78ac..1d205f9c50790f94ad0ea7642c5a371bb7bfc140 100644 (file)
@@ -598,13 +598,13 @@ void
 yasm_intnum_set_int(yasm_intnum *intn, long val)
 {
     /* positive numbers can go through the uint() function */
-    if (i >= 0) {
-       yasm_intnum_set_uint(intn, (unsigned long)i);
+    if (val >= 0) {
+       yasm_intnum_set_uint(intn, (unsigned long)val);
        return;
     }
 
     BitVector_Empty(conv_bv);
-    BitVector_Chunk_Store(conv_bv, 32, 0, (unsigned long)(-i));
+    BitVector_Chunk_Store(conv_bv, 32, 0, (unsigned long)(-val));
     BitVector_Negate(conv_bv, conv_bv);
 
     if (intn->type == INTNUM_BV)