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

QVariant::compare doesn't work with qulonglong

    XMLWordPrintable

Details

    • cf475b91ae8dc3f6f72b70ca624533c42be34b9e

    Description

      Following code returns -1 which is wrong, it should be 1.
      QVariant value1(qulonglong(LLONG_MAX + 20));
      QVariant value2(20);
      value1.compare(value2);

      Attachments

        For Gerrit Dashboard: QTBUG-42722
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            kehayryn Keijo Hayrynen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes