diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-01-09 09:02:53 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-01-12 09:38:18 +0000 |
| commit | 6d005b7c570f2ad25cf2b88329a2f99ab20b8787 (patch) | |
| tree | 28384896057bb9b927566f85182c22364b11bb55 /examples/sql/querymodel/customsqlmodel.cpp | |
| parent | 723ab99b1ac55c8d32a93ea80224d7ffb22f7893 (diff) | |
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 a61d7529511c890aa595110b9320ea0bf53dd623.
Fix by using ints instead.
As a drive-by, make the variable constexpr.
Amends 4b755bc11a8eadd156c65b7474c11e3ce822c6f1.
Pick-to: 6.7
Change-Id: Ie3f3c51aa7e9323c7ba96c810d2e95247d222fd2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'examples/sql/querymodel/customsqlmodel.cpp')
0 files changed, 0 insertions, 0 deletions
