summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-dump.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 18:30:09 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 18:30:09 +0000
commit10380b06f30596ce0ec504d488c550e332604af7 (patch)
tree8b2c0dd2fd5ef5f21b7f0ccd532cff8fc22e7ecc /gcc/java/jcf-dump.c
parent59f72e4ddb7238834a4cb6eac5098d4ca7efbf58 (diff)
downloadgcc-10380b06f30596ce0ec504d488c550e332604af7.tar.gz
* jcf-dump.c (SPECIAL_IINC): Ensure arguments match format
specifiers in calls to fprintf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-dump.c')
-rw-r--r--gcc/java/jcf-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c
index 444e862197b..88b188befb1 100644
--- a/gcc/java/jcf-dump.c
+++ b/gcc/java/jcf-dump.c
@@ -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;