diff options
author | Alan Modra <amodra@gmail.com> | 2003-05-09 11:36:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-05-09 11:36:43 +0000 |
commit | 8373f9713f3d2f523a144cdb0c2024b9275f2af4 (patch) | |
tree | 1652628031932e9931376e6eade6a8a5ff9b2cb8 /opcodes | |
parent | fa48c11b73aee480efc2fdbbcaa8326ff0b7f0e5 (diff) | |
download | gdb-8373f9713f3d2f523a144cdb0c2024b9275f2af4.zip gdb-8373f9713f3d2f523a144cdb0c2024b9275f2af4.tar.gz gdb-8373f9713f3d2f523a144cdb0c2024b9275f2af4.tar.bz2 |
* i386-dis.c (print_insn): Test intel_syntax against (char) -1 in
case char is unsigned.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e0eef4f..97ae91e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -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. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 79faee6..be78e83 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); |