summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp')
-rw-r--r--tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
index 8618a03d14..39f9cdae81 100644
--- a/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
+++ b/tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp
@@ -106,7 +106,7 @@ void tst_QHashFunctions::consistent()
// floats
{
- const/*expr broken: QTBUG-116079*/ qfloat16 f16 = -42.f;
+ const/*expr broken: QTBUG-116079*/ qfloat16 f16 = qfloat16(-42.f);
const auto h16 = qHash(f16, seed);
const auto h32 = qHash(float(f16), seed);
const auto h64 = qHash(double(f16), seed);