jcf-dump.c (SPECIAL_IINC): Ensure arguments match format specifiers in calls to fprintf.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 4 May 2000 18:30:09 +0000 (18:30 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 4 May 2000 18:30:09 +0000 (18:30 +0000)
* jcf-dump.c (SPECIAL_IINC): Ensure arguments match format
specifiers in calls to fprintf.

From-SVN: r33680

gcc/java/ChangeLog
gcc/java/jcf-dump.c

index df283c6693accfd55ba22a66a72f985575acff76..9d7fd3cdb0022a96ca99ddef1d7bf17aed5f44cb 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * jcf-dump.c (SPECIAL_IINC): Ensure arguments match format
+       specifiers in calls to fprintf.
+
 2000-05-03  Andrew Haley  <aph@cygnus.com>
 
        * expr.c (build_java_jsr): Use emit_jump, not expand_goto.
index 444e862197b544cbd360c371e9ff0cca60f85d29..88b188befb17a47b9974710ee4b12048b5186828 100644 (file)
@@ -1197,10 +1197,10 @@ DEFUN(disassemble_method, (jcf, byte_ops, len),
 
 #define SPECIAL_IINC(OPERAND_TYPE) \
   i = saw_wide ? IMMEDIATE_u2 : IMMEDIATE_u1; \
-  fprintf (out, " %d", i); \
+  fprintf (out, " %ld", (long) i); \
   INT_temp = saw_wide ? IMMEDIATE_s2 : IMMEDIATE_s1; \
   saw_wide = 0; \
-  fprintf (out, " %d", INT_temp)
+  fprintf (out, " %ld", (long) INT_temp)
 
 #define SPECIAL_WIDE(OPERAND_TYPE) \
   saw_wide = 1;