From beb73376393dd28972f5f4c502fd3d87ab13fddc Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 13 Dec 2019 00:20:51 +0000 Subject: [PATCH] compiler warning fix Signed-off-by: Ivailo Monev --- src/gui/widgets/qvalidator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/qvalidator.cpp b/src/gui/widgets/qvalidator.cpp index 025004d16..e1d35c216 100644 --- a/src/gui/widgets/qvalidator.cpp +++ b/src/gui/widgets/qvalidator.cpp @@ -47,6 +47,7 @@ #include "qlocale_p.h" #include +#include #include QT_BEGIN_NAMESPACE @@ -606,7 +607,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 < DBL_MAX) { qlonglong n = pow10(numDigits(qlonglong(max))) - 1; if (qAbs(i) > n) return QValidator::Invalid; -- 2.11.0