diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-04-19 07:07:22 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-04-19 07:31:22 (GMT) |
commit | 96da5f25cae2599820a526c2898b3c2e8329b88b (patch) | |
tree | cb4ed4d959be998a298c1b8b4e023673ae31e912 /tests/auto/qbytearraymatcher | |
parent | cf2996cceb1ee07d8969867981c8caeabf2d35c3 (diff) | |
download | Qt-96da5f25cae2599820a526c2898b3c2e8329b88b.zip Qt-96da5f25cae2599820a526c2898b3c2e8329b88b.tar.gz Qt-96da5f25cae2599820a526c2898b3c2e8329b88b.tar.bz2 |
Fixed failure of tst_qbytearraymatcher on 64 bit.
Code had `sizeof(needle-1)' where `sizeof(needle)-1' was meant.
This would pass where sizeof(char*) == 4, but not where
sizeof(char*) == 8.
Diffstat (limited to 'tests/auto/qbytearraymatcher')
-rw-r--r-- | tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp b/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp index abaebb0..e8a1ba3 100644 --- a/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp +++ b/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp @@ -69,7 +69,7 @@ void tst_QByteArrayMatcher::interface() matcher2.setPattern(QByteArray(needle)); QByteArrayMatcher matcher3 = QByteArrayMatcher(QByteArray(needle)); - QByteArrayMatcher matcher4(needle, sizeof(needle - 1)); + QByteArrayMatcher matcher4(needle, sizeof(needle) - 1); QByteArrayMatcher matcher5(matcher2); QByteArrayMatcher matcher6; matcher6 = matcher3; |