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

Regression with bitwise operations (or array elements?)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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)

      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

        1. test_1.txt
          2 kB
          Dmitrii Kosarev
        2. test_2.txt
          2 kB
          Dmitrii Kosarev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes