* a29k-dis.c (print_special): Change num to unsigned int.
authorIan Lance Taylor <ian@airs.com>
Thu, 9 Nov 1995 01:20:32 +0000 (01:20 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 9 Nov 1995 01:20:32 +0000 (01:20 +0000)
Wed Nov  8 20:10:35 1995  Eric Freudenthal <freudenthal@nyu.edu>

* a29k-dis.c (print_insn): Cast insn24 to unsigned long when
shifting it.

opcodes/a29k-dis.c

index 74697c70cce4fcf8003510cf9f7754d1741f6f4b..46245e704b6f8e4dd4e947263e2a5b650b12b630 100644 (file)
@@ -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;
          
This page took 0.025383 seconds and 4 git commands to generate.