Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61399

Expression is always true (qdatetime.cpp)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P5: Not important
    • 5.9.2
    • 5.9.0
    • Core: Date/Time
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            appchecker AppChecker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes