mirror of https://github.com/qt/qtbase.git
tst_QHashFunctions: suppress warning about casting from float to _Float16
Amends c86cf385d6
.
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>
This commit is contained in:
parent
ceee7acf43
commit
a61d752951
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue