OSDN Git Service

* config/sparc/sparc.c (print_operand): Cast fprintf arguments to
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Dec 1999 17:12:10 +0000 (17:12 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Dec 1999 17:12:10 +0000 (17:12 +0000)
match the format.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30981 138bc75d-0d04-0410-961f-82ee72b054a4

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

index f6d8982..d2a6582 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 98bc402..ee2c974 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");
     }