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

Creator code model warns about lower 64 bit signed limit

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.9.2
    • C/C++/Obj-C++ Support
    • None
    • All

    Description

      When entering the following line:

       qint64 x = -9223372036854775808ll;

      I get a warning in the editor:

      "integer literal is too large to be represented in a signed integer type, interpreting as unsigned"

      When using a decremented value the warning disappears:

       qint64 x = -9223372036854775807ll;

      However I think the lower limit of a signed long long integer is -9223372036854775808 not -9223372036854775807.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes