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

cdb: incorrect display of unsigned char values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.3.2
    • Debugger
    • None
    • Windows, MSVC 2013, cdb

    Description

      Consider the following program.

      #include <cstdio>
      
      int main(int argc, char *argv[])
      {
          unsigned char c = 255;
          printf("%u\n", c);
          return 0;
      }
      

      Break at the return statement and inspect the content of variable c.
      The displayed content will be -1. Expected is 255.

      Attachments

        Issue Links

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

          Activity

            People

              davschul David Schulz
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes