aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-05-09 11:36:43 +0000
committerAlan Modra <amodra@gmail.com>2003-05-09 11:36:43 +0000
commit8373f9713f3d2f523a144cdb0c2024b9275f2af4 (patch)
tree1652628031932e9931376e6eade6a8a5ff9b2cb8 /opcodes/i386-dis.c
parentfa48c11b73aee480efc2fdbbcaa8326ff0b7f0e5 (diff)
downloadgdb-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/i386-dis.c')
-rw-r--r--opcodes/i386-dis.c2
1 files changed, 1 insertions, 1 deletions
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);