sparc.c (print_operand): Cast fprintf arguments to match the format.
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Dec 1999 17:12:10 +0000 (18:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Dec 1999 17:12:10 +0000 (18:12 +0100)
* config/sparc/sparc.c (print_operand): Cast fprintf arguments to
match the format.

From-SVN: r30981

gcc/ChangeLog
gcc/config/sparc/sparc.c

index f6d89828d6d1cf47be30ecfccf258e6144c56edd..d2a65821335d1bbcf3ac683d5c2bfb275f60c110 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/sparc/sparc.c (print_operand): Cast fprintf arguments
+       to match the format.
+
 1999-12-16  David S. Miller  <davem@redhat.com>
 
        * expr.c (emit_move_insn_1): Only emit clobbers if one of
index 98bc4022d6d208ff0e3e8c94a8b49d010fa55ee8..ee2c974b5bc1dbcd33093323dfa1678ed0d75840 100644 (file)
@@ -5512,10 +5512,10 @@ print_operand (file, x, code)
               || GET_MODE_CLASS (GET_MODE (x)) == MODE_INT))
     {
       if (CONST_DOUBLE_HIGH (x) == 0)
-       fprintf (file, "%u", CONST_DOUBLE_LOW (x));
+       fprintf (file, "%u", (unsigned int) CONST_DOUBLE_LOW (x));
       else if (CONST_DOUBLE_HIGH (x) == -1
               && CONST_DOUBLE_LOW (x) < 0)
-       fprintf (file, "%d", CONST_DOUBLE_LOW (x));
+       fprintf (file, "%d", (int) CONST_DOUBLE_LOW (x));
       else
        output_operand_lossage ("long long constant not a valid immediate operand");
     }