mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
b93dfdfb27
commit
beb7337639
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@
|
|||
#include "qlocale_p.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue