qt6-bb10/tests/auto/corelib/global
Marc Mutz 6d005b7c57 tst_QCompareHelpers: fix narrowing warning
Warns MingW (or, in general, any GCC 13):

   warning: converting to 'QtPrivate::NativeFloat16Type' {aka '_Float16'} from 'double' with greater conversion rank

See also a61d752951.

Fix by using ints instead.

As a drive-by, make the variable constexpr.

Amends 4b755bc11a.

Pick-to: 6.7
Change-Id: Ie3f3c51aa7e9323c7ba96c810d2e95247d222fd2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-01-12 09:38:18 +00:00
..
q20 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
q_func_info CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcompare Add missing <=> 0 operator to Qt ordering types 2023-12-07 23:36:15 +01:00
qcomparehelpers tst_QCompareHelpers: fix narrowing warning 2024-01-12 09:38:18 +00:00
qflags CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qfloat16 qfloat16: extend comparison with integral types 2023-12-08 14:53:37 +01:00
qgetputenv CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qglobal Long live QDebug::operator<<(q(u)int128)! 2023-12-09 21:00:13 +01:00
qglobalstatic CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qhooks CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qkeycombination CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlogging Fix assert in qCleanupFuncInfo when using QDebug from a lambda with auto 2023-07-11 02:37:58 +02:00
qnativeinterface CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qnumeric CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qoperatingsystemversion CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qrandomgenerator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtendian tst_QtEndian: rewrite the ENDIAN_TEST macros to support FP 2023-12-11 23:40:04 +01:00
qxp tst_qxp_function_ref: check that function_ref's are trivially copyable 2023-12-16 09:43:58 +01:00
CMakeLists.txt Implement compare helper macros 2023-11-28 20:30:19 +00:00