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

cdb: incorrect display of unsigned char values

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes