Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22883

Displaying C++ bit fields in the Locals window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.9.1
    • Debugger
    • MinGW C/C++ 7.3.0 64-bit
      MinGW GDB 8.1 64-bit
    • Windows

      Problem observing variables in the Locals window. There is a structure containing a bit field of type int (signed integer 24 bits). When displaying a negative number (for example, -1 as in the screenshot), an unsigned integer is displayed, and a negative one is needed. When the compiler has permitted to collect code with type "int" and the same type is specified in the debug window. This is probably an error and should display "-1" instead of "16777215". 

      Thank a lot, respectfully Vladimir Burov!

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

            hjk hjk
            mobius.petrol Vladimir Burov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes