OSDN Git Service

PR binutils/13348
authornickc <nickc>
Wed, 26 Oct 2011 14:45:59 +0000 (14:45 +0000)
committernickc <nickc>
Wed, 26 Oct 2011 14:45:59 +0000 (14:45 +0000)
* i386-dis.c (print_insn): Fix testing of array subscript.

opcodes/ChangeLog
opcodes/i386-dis.c

index 68239dd..4d18f6a 100644 (file)
@@ -1,7 +1,11 @@
+2011-10-26  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/13348
+       * i386-dis.c (print_insn): Fix testing of array subscript.
+
 2011-10-26  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * disassemble.c (ARCH_epiphany): Move into alphasorted spot.
-
        * epiphany-asm.c, epiphany-opc.h: Regenerate.
 
 2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
index 85b63ea..019a8f5 100644 (file)
@@ -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));