Details
-
Bug
-
Resolution: Done
-
P5: Not important
-
5.9.0
-
None
-
e7f962d2719fb5d44b24a58b9d493ade93538cf4
Description
Hi!
This expression is always true:
if (month >= 1 || month <= 12) {
Probably, it should be:
if (month >= 1 && month <= 12) {
This possible defect found by AppChecker
Attachments
For Gerrit Dashboard: QTBUG-61399 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
197346,3 | QDate::shortMonthName: remove faulty month test | dev | qt/qtbase | Status: MERGED | +2 | 0 |
197509,1 | QDate::shortMonthName: remove faulty month test | 5.9 | qt/qtbase | Status: ABANDONED | 0 | 0 |