diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-10-19 10:11:03 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-10-24 08:44:36 -0700 |
commit | a61d7529511c890aa595110b9320ea0bf53dd623 (patch) | |
tree | 4c122abb468f0453ab95c7b8109acc0537977709 /tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp | |
parent | ceee7acf43464dbbcca7e05911e354532c5435f6 (diff) |
tst_QHashFunctions: suppress warning about casting from float to _Float16
Amends c86cf385d6d66d8fd3de1666205aaf4b8fcec747.
tst_qhashfunctions.cpp:109:59: warning: converting to ‘qfloat16::NativeType’ {aka ‘_Float16’} from ‘float’ with greater conversion rank
Pick-to: 6.6 6.5
Change-Id: I79e700614d034281bf55fffd178f91775966658f
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp')
-rw-r--r-- | tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp | 2 |
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); |