From a3cf92e5b2d793feb837ed300b35050b6c7c1365 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 9 Nov 1995 01:20:32 +0000 Subject: [PATCH] * a29k-dis.c (print_special): Change num to unsigned int. Wed Nov 8 20:10:35 1995 Eric Freudenthal * a29k-dis.c (print_insn): Cast insn24 to unsigned long when shifting it. --- opcodes/a29k-dis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opcodes/a29k-dis.c b/opcodes/a29k-dis.c index 74697c70cc..46245e704b 100644 --- a/opcodes/a29k-dis.c +++ b/opcodes/a29k-dis.c @@ -43,7 +43,7 @@ print_general (num, info) assembler uses. */ static void print_special (num, info) - int num; + unsigned int num; struct disassemble_info *info; { /* Register names of registers 0-SPEC0_NUM-1. */ @@ -166,7 +166,7 @@ print_insn (memaddr, info) opcode < &a29k_opcodes[num_opcodes]; ++opcode) { - if ((insn24<<24) == opcode->opcode) + if (((unsigned long) insn24 << 24) == opcode->opcode) { char *s; -- 2.34.1