diff options
Diffstat (limited to 'tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp')
-rw-r--r-- | tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp b/tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp index e1b8336955..da52e6e026 100644 --- a/tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp +++ b/tests/auto/corelib/global/qnumeric/tst_qnumeric.cpp @@ -228,7 +228,7 @@ void tst_QNumeric::distinctNaNF() { template<typename F, typename Whole> void tst_QNumeric::generalNaN_data() { - Q_STATIC_ASSERT(sizeof(F) == sizeof(Whole)); + static_assert(sizeof(F) == sizeof(Whole)); QTest::addColumn<Whole>("whole"); // Every value with every bit of the exponent set is a NaN. // Sign and mantissa can be anything without interfering with that. @@ -251,7 +251,7 @@ void tst_QNumeric::generalNaN_data() template<typename F, typename Whole> void tst_QNumeric::generalNaN() { - Q_STATIC_ASSERT(sizeof(F) == sizeof(Whole)); + static_assert(sizeof(F) == sizeof(Whole)); QFETCH(const Whole, whole); F nan; memcpy(&nan, &whole, sizeof(F)); |