diff options
author | Tobias Koenig <tobias.koenig@kdab.com> | 2015-01-12 17:16:21 +0000 |
---|---|---|
committer | Tobias Koenig <tobias.koenig@kdab.com> | 2015-01-14 05:37:43 +0100 |
commit | 7eafe74804d94ec59df71539ea8791aa560a8e6b (patch) | |
tree | 99495df825fc0ec33feefa4ca3d96abb251c8842 | |
parent | 37fd702e3025a3ba504639580e13b58db0e8e93d (diff) |
Haiku: Fix compilation of qarraydata unit test
On Haiku the compilation failed with error:
"undefined reference to 'bool QTest::qCompare<unsigned long, unsigned int>
(unsigned long const&, unsigned int const&, char const*, char const*, char const*, int)'"
Change-Id: I0daf2e6029898cb6c3d7da9d603aa1ea533aa829
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index 5730c4df35..a7c08fddb3 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -789,7 +789,7 @@ void tst_QArrayData::alignment() + minAlignment - Q_ALIGNOF(QArrayData))); // Data is aligned - QCOMPARE(quintptr(data->data()) % alignment, quintptr(0u)); + QCOMPARE(quintptr(quintptr(data->data()) % alignment), quintptr(0u)); // Check that the allocated array can be used. Best tested with a // memory checker, such as valgrind, running. |