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 Change-Id: Ie28eadac333c4bcd8c08fffd17c5a3ccb4205139 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit d204ea98730baeeb55d2da229f2ce743df8c583e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c5759c962d
commit
4e7f906b03
@ -3162,7 +3162,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…
x
Reference in New Issue
Block a user