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

Regression with bitwise operations (or array elements?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 RC1
    • 5.2.1, 5.3.0 Beta1
    • None
    • Ubuntu 13.10, Debian/testing with Qt5.3 beta1 from sources.
    • 7867f6817e2367478cfcd6574bd6edefd1c5c958 (qtdeclarative)

    Description

      After execution following code:
      b = 201000 with Qt 5.0.2 (correct)
      b = 4 with Qt 5.2.1, 5.3beta1 (wrong)

        Component.onCompleted: {
            var a = [100500];
            var b = 2 * a[0] | 0;
            console.log("b = ", b);
        }
      

      If I don't access array by index everything seems to be OK

      Attachments

        1. test_2.txt
          2 kB
        2. test_1.txt
          2 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-38097
          # Subject Branch Project Status CR V

          Activity

            People

              shausman Simon Hausmann
              kakadu Dmitrii Kosarev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes