Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.2
-
cf475b91ae8dc3f6f72b70ca624533c42be34b9e
Description
Following code returns -1 which is wrong, it should be 1.
QVariant value1(qulonglong(LLONG_MAX + 20));
QVariant value2(20);
value1.compare(value2);
Attachments
For Gerrit Dashboard: QTBUG-42722 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
100070,5 | Implement proper C++ type numeric promotion for QVariant comparisons | dev | qt/qtbase | Status: MERGED | +2 | 0 |