Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
4.6.3
-
None
-
ARM
Description
When running qvariant autotest in ARM environment it fails in 'void tst_QVariant::numericalConvert()':
When 'i' reaches 3 then 'num' should be set to 5 but it doesn't, causing comparisons to fail.
--------------------------------
for(int i = 0; i < vect.size(); i++) {
double num = 5.3;
if (i >= 3 && i <= 7)
num = 5;
QVariant *v = vect.at;
QCOMPARE(v->toFloat() , float(num));
---------------------------------
If I change
if (i >= 3 && i <= 7)
num = 5;
to
if (i >= 3)
if (i <= 7)
num = 5;
or comment out QCOMPARE lines then 'num' is set to 5 correctly.
Attachments
Issue Links
- relates to
-
QTBUG-19199 Issue with QList and type of index use to get value from list
- Closed
For Gerrit Dashboard: QTBUG-8959 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
106257,2 | tst_qvariant: Remove an obsolete QSKIP | dev | qt/qtbase | Status: MERGED | +2 | 0 |