summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbytearraymatcher
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-04-19 17:07:22 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-04-19 17:31:22 +1000
commit96da5f25cae2599820a526c2898b3c2e8329b88b (patch)
treecb4ed4d959be998a298c1b8b4e023673ae31e912 /tests/auto/qbytearraymatcher
parentcf2996cceb1ee07d8969867981c8caeabf2d35c3 (diff)
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp b/tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp
index abaebb0d97..e8a1ba39f0 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;