Fix undefined compilation behaviour shifting a value into the sign bit of a signed...
authorMichael McConville <mmcco@mykolab.com>
Mon, 1 Feb 2016 10:41:32 +0000 (10:41 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 1 Feb 2016 10:41:32 +0000 (10:41 +0000)
commitd8c823c8b62b4f0fc4747eb9e4e29739add34c17
treeec85efaa6d68150cac51b7712d4281b5363187ca
parentb6471e6e2c88ae473453e3499d9cb6a607a3e068
Fix undefined compilation behaviour shifting a value into the sign bit of a signed integer.

* cgen-dis.c (count_decodable_bits): Use unsigned value for mask
test bit.
opcodes/ChangeLog
opcodes/cgen-dis.c