disas/arm: avoid clang shifting negative signed warning
commit02460c3b4287776062715b95c59cd8829015615d
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 10 Nov 2015 15:57:35 +0000 (10 15:57 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 17 Nov 2015 10:35:56 +0000 (17 18:35 +0800)
tree4c38689374fab5b3ad2e2201e53d36066dc73866
parent886ce6f8b6ede74eb04314ef62d15bcdf5df7ef1
disas/arm: avoid clang shifting negative signed warning

clang 3.7.0 on x86_64 warns about the following:

  disas/arm.c:1782:17: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    imm |= (-1 << 7);
            ~~ ^

Note that this patch preserves the tab indent in this source file
because the surrounding code still uses tabs.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
disas/arm.c