fix display of 0xffffffff
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 24 Jul 2003 09:37:39 +0000 (09:37 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 24 Jul 2003 09:37:39 +0000 (09:37 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2769 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c

index 7ae602255a0a93f4f07e8583036a7902a6a560b3..a49f75ab00312c205194d688b995f54c5dfa1294 100644 (file)
@@ -218,7 +218,7 @@ printOperand (operand * op, FILE * file)
       if (SPEC_NOUN (opetype) == V_FLOAT)
        fprintf (file, "%g {", SPEC_CVAL (opetype).v_float);
       else
-       fprintf (file, "0x%x {", (int) floatFromVal (op->operand.valOperand));
+       fprintf (file, "0x%x {", (unsigned) floatFromVal (op->operand.valOperand));
       printTypeChain (operandType (op), file);
       fprintf (file, "}");
       break;