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

wasm: issues with bitfield packing

    XMLWordPrintable

Details

    • WebAssembly
    • 1c0f0d3072c0944f95bbc15b7e5d3c1629978a6b I5bfd2079ac8f35ced8b59a1d2e3c657993a70986

    Description

      emscripten seems to have issues with bitfield packing such as:

      quint32 enabled : 1;
      

      in which this is always false.

      See https://github.com/kripken/emscripten/issues/4540

      There are quite a few places in which Qt / Declarative uses these, such as
      QGraphicsItem. One result, as mentioned above, is that the item is never enabled.

      This is to discuss the best work around.

      Changing the declaration to

      quint32 enabled; 
      

      will make this work as intended.

      This change would be trival, but the number of variables with bitfields makes this rather invasive.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            lpotter Lorn Potter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes