aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-10-26 14:46:00 +0000
committerNick Clifton <nickc@redhat.com>2011-10-26 14:46:00 +0000
commitf6dd4781ef99e26500c98e3eb54bf01c7295915f (patch)
tree43358e36d26b4f068a0cd140b496ff472ce9e8df /opcodes/i386-dis.c
parentfd936b4c69a28e454236c31ec488a1cb8d406d8c (diff)
downloadgdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.zip
gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.gz
gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.bz2
PR binutils/13348
* i386-dis.c (print_insn): Fix testing of array subscript.
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 85b63ea..019a8f5 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -11331,7 +11331,7 @@ print_insn (bfd_vma pc, disassemble_info *info)
{
/* Too many prefixes or unused REX prefixes. */
for (i = 0;
- all_prefixes[i] && i < (int) ARRAY_SIZE (all_prefixes);
+ i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i];
i++)
(*info->fprintf_func) (info->stream, "%s",
prefix_name (all_prefixes[i], sizeflag));