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

Inconsistent hashing between different FP types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5.2, 6.6.0 Beta2, dev
    • None
    • Ubuntu 20.04, Clang 15, GCC 11, GCC 9
    • c86cf385d (dev), 2d4db1bff (6.5), 3a9bbf235 (6.6), 1845d4332 (dev), c4aa3b0dc (6.7)

      Besides QTBUG-116076, which is probably still fixable, we also have that

      • qHash(42.f),
      • qHash(42.), and probably also
      • qHash(42.L
        all produce different values.

      Expectation would be, like in the epic, that equal values produce equal hash values.

      This might be fixable in Qt 6, as the double and long double overloads are out-of-line, only the float one is inline and therefore immutable.

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

            thiago Thiago Macieira
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: