Commit bc585fd4 authored by Robert Loehning's avatar Robert Loehning Committed by Tobias Hunger
Browse files

Fixed operator precedence

Change-Id: I8482915ac8218d6575fb4c51dbcf0d1fcd0d60e4
Reviewed-on: http://codereview.qt-project.org/4681

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 2b480103
...@@ -268,8 +268,9 @@ static QList<Abi> abiOf(const QByteArray &data) ...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment