aboutsummaryrefslogtreecommitdiff
path: root/opcodes/d10v-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-19 17:40:28 +0000
committerNick Clifton <nickc@redhat.com>2001-09-19 17:40:28 +0000
commitd5b2f4d67cf654227d255e7e72c5f85fe2f020ee (patch)
tree5436d1ebdf67f851d5975ae38520168ac79e8771 /opcodes/d10v-dis.c
parent38131e6744be32896c1259d5db95a1f492c11533 (diff)
downloadfsf-binutils-gdb-d5b2f4d67cf654227d255e7e72c5f85fe2f020ee.zip
fsf-binutils-gdb-d5b2f4d67cf654227d255e7e72c5f85fe2f020ee.tar.gz
fsf-binutils-gdb-d5b2f4d67cf654227d255e7e72c5f85fe2f020ee.tar.bz2
Fix compile time warning messages
Diffstat (limited to 'opcodes/d10v-dis.c')
-rw-r--r--opcodes/d10v-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index 29996ad..d337a6b 100644
--- a/opcodes/d10v-dis.c
+++ b/opcodes/d10v-dis.c
@@ -202,7 +202,7 @@ dis_long (insn, memaddr, info)
while (op->name)
{
- if ((op->format & LONG_OPCODE) && ((op->mask & insn) == op->opcode))
+ if ((op->format & LONG_OPCODE) && ((op->mask & insn) == (unsigned long) op->opcode))
{
match = 1;
(*info->fprintf_func) (info->stream, "%s\t", op->name);
@@ -253,7 +253,7 @@ dis_2_short (insn, memaddr, info, order)
while (op->name)
{
if ((op->format & SHORT_OPCODE)
- && ((op->mask & ins[j]) == op->opcode))
+ && ((op->mask & ins[j]) == (unsigned long) op->opcode))
{
(*info->fprintf_func) (info->stream, "%s\t", op->name);
for (i = 0; op->operands[i]; i++)