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

Javascript unsigned right shift Operator(>>>) always return 0

    XMLWordPrintable

Details

    • de93307ab6acc965d6db5a0ca835e6bd544af6d2

    Description

      unsigned right shift operator(>>>) always return 0.
      it is working correctly in Windows VS 2013 64-bit 5.4.0 and Linux Gcc 64-bit 5.4.0,
      but not on android_armv7

      import QtQuick 2.0
      
      Item {
          Component.onCompleted: {
              var x = -14;
              console.log(x >>> 2); //got 0, expecting 1073741820, 
          }
      }
      

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            longwei_su Longwei Su
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes