* i386-dis.c (print_insn): Test intel_syntax against (char) -1 in
authorAlan Modra <amodra@gmail.com>
Fri, 9 May 2003 11:36:43 +0000 (11:36 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 9 May 2003 11:36:43 +0000 (11:36 +0000)
case char is unsigned.

opcodes/ChangeLog
opcodes/i386-dis.c

index e0eef4fe9b07904b3ab0a3f54990d6f181d3d97d..97ae91eb3d0e8b0f0971a2b914abd09d98de32fd 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * i386-dis.c (print_insn): Test intel_syntax against (char) -1 in
+       case char is unsigned.
+
 2003-05-01  Christian Groessler <chris@groessler.org>
 
        * z8k-dis.c (z8k_lookup_instr): Optimize FETCH_DATA calls.
index 79faee676e50bda28a35a51d3320ae8044676430..be78e83fef11b7154d8ea6bdb939e875b272a4b6 100644 (file)
@@ -1891,7 +1891,7 @@ print_insn (pc, info)
   mode_64bit = (info->mach == bfd_mach_x86_64_intel_syntax
                || info->mach == bfd_mach_x86_64);
 
-  if (intel_syntax == -1)
+  if (intel_syntax == (char) -1)
     intel_syntax = (info->mach == bfd_mach_i386_i386_intel_syntax
                    || info->mach == bfd_mach_x86_64_intel_syntax);