From 96da5f25cae2599820a526c2898b3c2e8329b88b Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Mon, 19 Apr 2010 17:07:22 +1000 Subject: 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. --- tests/auto/qbytearraymatcher/tst_qbytearraymatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12