parseAPI: correct arch comparisons in getAddressWidth
authorJosh Stone <jistone@redhat.com>
Tue, 4 Aug 2015 17:02:52 +0000 (10:02 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 6 Aug 2015 05:39:57 +0000 (22:39 -0700)
commitb7333526e894ddfbad1fc372db36910925770182
tree8edc9800a21144a463430f1da934d9399092e248
parentc110c44e70e8f68ed24b2a2ec5d7e630ba62193e
parseAPI: correct arch comparisons in getAddressWidth

The bare constants on branches of "||" were treated as true.  The intended
arch comparison needs to be repeated in each case.

Reported by Coverity as CONSTANT_EXPRESSION_RESULT.
parseAPI/h/CFGModifier.h