X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fcgen-dis.c;h=2d0f701c962b8e315f583a78a6932cc694abfc2b;hb=9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a;hp=7357b53feb085a9da7fa5039ebd38f18772979e3;hpb=43e65147c07b1400ae0dbb6694882eceb2363713;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/cgen-dis.c b/opcodes/cgen-dis.c index 7357b53feb..2d0f701c96 100644 --- a/opcodes/cgen-dis.c +++ b/opcodes/cgen-dis.c @@ -1,5 +1,5 @@ /* CGEN generic disassembler support code. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of libopcodes. @@ -40,7 +40,8 @@ count_decodable_bits (const CGEN_INSN *insn) { unsigned mask = CGEN_INSN_BASE_MASK (insn); int bits = 0; - int m; + unsigned m; + for (m = 1; m != 0; m <<= 1) { if (mask & m)