summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-05-09 11:36:43 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-05-09 11:36:43 +0000
commit2729fb2483899a9b69e0d73500c79373156f27a7 (patch)
treefbd1ced62f70ea5b63d165026d1e714d3b21c6c3
parent69a0ee9b7ee3eb52775d88762528f8698d9dc1aa (diff)
downloadgdb-2729fb2483899a9b69e0d73500c79373156f27a7.tar.gz
* i386-dis.c (print_insn): Test intel_syntax against (char) -1 incagney_writestrings-20030508-branchpoint
case char is unsigned.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/i386-dis.c2
2 files changed, 6 insertions, 1 deletions
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 <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 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);