tst_QVariant: fix copy & paste error in double-float comparisons
We wanted to test the (min,max) of each of the two types, but one of the four combinations wasn't correctly done. Task-number: QTBUG-124349 Pick-to: 6.7 Change-Id: Ie28eadac333c4bcd8c08fffd17c5a3ccb4205139 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>bb10
parent
359df32300
commit
d204ea9873
|
|
@ -3170,7 +3170,7 @@ QT_WARNING_POP
|
|||
addComparePair(qQNaN(), std::numeric_limits<float>::quiet_NaN());
|
||||
if (sizeof(qreal) == sizeof(double)) {
|
||||
addComparePair(std::numeric_limits<float>::min(), std::numeric_limits<double>::min());
|
||||
addComparePair(std::numeric_limits<float>::min(), std::numeric_limits<double>::min());
|
||||
addComparePair(std::numeric_limits<float>::min(), std::numeric_limits<double>::max());
|
||||
addComparePair(std::numeric_limits<float>::max(), std::numeric_limits<double>::min());
|
||||
addComparePair(std::numeric_limits<float>::max(), std::numeric_limits<double>::max());
|
||||
addComparePair(double(Q_INT64_C(1) << 53), Q_INT64_C(1) << 53);
|
||||
|
|
|
|||
Loading…
Reference in New Issue