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

quint64 differs from uint64_t

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.8
    • Core: Other
    • None

    Description

      uint64_t and quint64 are different types, which can lead to rather unpleasant surprises, e.g.:

      ```
      void foo(int);
      void foo(uint);
      void foo(qint64);
      void foo(quint64);

      void bar()

      { foo(std::uint64_t(0)); // Call to 'foo' is ambiguous }

      ```

      it would be great if qt could integrate well with stdint.h / cstdint types. changing qint64 to `int64_t` would be an ABI change, but something to consider for qt-7

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes