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>
This commit is contained in:
Tobias Koenig 2015-01-12 17:16:21 +00:00
parent 37fd702e30
commit 7eafe74804

View File

@ -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.