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

[Reg 6.7.2->6.8.0b3] QByteArray::lastIndexOf fails to find char

    XMLWordPrintable

Details

    • 7b1f3bdc5 (dev), 5caa31cb2 (6.8)

    Description

      When testing Qt 6.8.0 Beta 3 an issue regarding QByteArray::lastIndexOf() popped up.

      This test snippet runs successfully with Qt 6.7.2 but fails with Qt 6.8.0 Beta 3. lastIndexOf returns -1 here as it fails to detect the casted char.

      const auto a = QByteArray::fromHex("800080");
      QCOMPARE(a.lastIndexOf(static_cast<char>(0x80)), 2);
      

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            janmoeller Jan Möller
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes