From: Alan Modra Date: Fri, 9 May 2003 11:36:43 +0000 (+0000) Subject: * i386-dis.c (print_insn): Test intel_syntax against (char) -1 in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8373f9713f3d2f523a144cdb0c2024b9275f2af4;p=binutils-gdb.git * i386-dis.c (print_insn): Test intel_syntax against (char) -1 in case char is unsigned. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e0eef4fe9b0..97ae91eb3d0 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2003-05-09 Alan Modra + + * i386-dis.c (print_insn): Test intel_syntax against (char) -1 in + case char is unsigned. + 2003-05-01 Christian Groessler * z8k-dis.c (z8k_lookup_instr): Optimize FETCH_DATA calls. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 79faee676e5..be78e83fef1 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -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);