aboutsummaryrefslogtreecommitdiff
path: root/opcodes/openrisc-asm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-20 15:33:41 +0000
committerNick Clifton <nickc@redhat.com>2001-09-20 15:33:41 +0000
commit2c8721ecf3252c9834ce50bedc88d20ca0a63bd8 (patch)
tree97e6a307f9cf41320f3a2903909f0d80da828996 /opcodes/openrisc-asm.c
parentfc05c67f12f75f93a4678cbcd8f1ab8c44beae23 (diff)
downloadgdb-2c8721ecf3252c9834ce50bedc88d20ca0a63bd8.zip
gdb-2c8721ecf3252c9834ce50bedc88d20ca0a63bd8.tar.gz
gdb-2c8721ecf3252c9834ce50bedc88d20ca0a63bd8.tar.bz2
oops - forgot to check for clean 64 bit build - fix compile time warning
Diffstat (limited to 'opcodes/openrisc-asm.c')
-rw-r--r--opcodes/openrisc-asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/openrisc-asm.c b/opcodes/openrisc-asm.c
index 93e21f0..b414cb5 100644
--- a/opcodes/openrisc-asm.c
+++ b/opcodes/openrisc-asm.c
@@ -110,7 +110,7 @@ parse_hi16 (cd, strp, opindex, valuep)
if (**strp == '-')
errmsg = cgen_parse_signed_integer (cd, strp, opindex, (long *) &value);
else
- errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, &value);
+ errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, (unsigned long *) &value);
}
*valuep = (long) (short) (value & 0xffff);
return errmsg;
@@ -160,7 +160,7 @@ parse_lo16 (cd, strp, opindex, valuep)
if (**strp == '-')
errmsg = cgen_parse_signed_integer (cd, strp, opindex, (long *) &value);
else
- errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, &value);
+ errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, (unsigned long *) &value);
*valuep = (long) (short) (value & 0xffff);
return errmsg;
}