diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-05-02 15:40:24 -0700 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-20 14:14:01 +0200 |
commit | 9a29c05b1ed3190a308b616c0955c0dd99b8ccf8 (patch) | |
tree | 7d24f878b21baa3f2a3c0f500610c3d5e3368132 /tests | |
parent | f0f922ad8a3e67492894f8a6716cb6e214c55f86 (diff) |
Fix Clang 10 warning about converting ULLONG_MAX to double
The compiler must convert ULLONG_MAX to double before adding 1, so this
expression was wrong.
MathExtras.h:402:43: error: implicit conversion from 'unsigned long long' to 'double' changes value from
18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
Task-number: QTBUG-83666
Change-Id: I99ab0f318b1c43b89888fffd160b4a95a258423b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 1250d8b5b95eecac767a23563717e53faa5d3b8a)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions