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

Evaluation of if statement returns different values

    XMLWordPrintable

Details

    Description

      To reproduce, open the attached file in qmlscene.

      Given that var key is a number returned from a function, and
      var keycheck = (key !== void 0 && key !== -1)

      These two if statements produces different outputs
      if (key !== void 0 && key !== -1) and if (keycheck)

      This is reproducible on 32 bit windows, but not on 64 bit mac.

      Attachments

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

        Activity

          People

            amanda.hamblin-true Amanda Hamblin-True (Inactive)
            yihuisaw Yihui Saw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes