diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-05 14:54:04 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-04-15 19:55:06 +0200 |
commit | bc726ed5d96161b70a22b9a11e0943acca219cfc (patch) | |
tree | 3899fdc07cf5d21baa8ab126aa2aa80ce2f61d3f /src/gui/util | |
parent | e80544ebca7bc3083df460607931bb4ea55d6a6a (diff) |
Compile fixes for clang10
Fix some warnings that are flagged as errors on clang10.
Change-Id: I906634c8b2bd94db42d74a7f3d10efb086e373cc
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/util')
-rw-r--r-- | src/gui/util/qvalidator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qvalidator.cpp b/src/gui/util/qvalidator.cpp index ede4ccd482..b968592c01 100644 --- a/src/gui/util/qvalidator.cpp +++ b/src/gui/util/qvalidator.cpp @@ -693,7 +693,7 @@ QValidator::State QDoubleValidatorPrivate::validateWithLocale(QString &input, QL if (notation == QDoubleValidator::StandardNotation) { double max = qMax(qAbs(q->b), qAbs(q->t)); - if (max < LLONG_MAX) { + if (max < double(LLONG_MAX)) { qlonglong n = pow10(numDigits(qlonglong(max))); // In order to get the highest possible number in the intermediate // range we need to get 10 to the power of the number of digits |