forked from qt-creator/qt-creator
Fixed operator precedence
Change-Id: I8482915ac8218d6575fb4c51dbcf0d1fcd0d60e4 Reviewed-on: http://codereview.qt-project.org/4681 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
2b480103e3
commit
bc585fd4ec
@@ -268,8 +268,9 @@ static QList<Abi> abiOf(const QByteArray &data)
|
|||||||
// Windows PE: values are LE (except for a few exceptions which we will not use here).
|
// Windows PE: values are LE (except for a few exceptions which we will not use here).
|
||||||
|
|
||||||
// MZ header first (ZM is also allowed, but rarely used)
|
// MZ header first (ZM is also allowed, but rarely used)
|
||||||
if (!getUint8(data, 0) == 'M' || !getUint8(data, 1) == 'Z')
|
const quint8 firstChar = getUint8(data, 0);
|
||||||
if (!getUint8(data, 0) == 'Z' || !getUint8(data, 1) == 'M')
|
const quint8 secondChar = getUint8(data, 1);
|
||||||
|
if ((firstChar != 'M' || secondChar != 'Z') && (firstChar != 'Z' || secondChar != 'M'))
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
// Get PE/COFF header position from MZ header:
|
// Get PE/COFF header position from MZ header:
|
||||||
|
|||||||
Reference in New Issue
Block a user