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

qRound rounds incorrectly in certain cases

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 6.0.0 Beta2
    • Core: Other
    • None

    Description

      CodeChecker found a potential issue in qRound (the +0.5 method): https://clang.llvm.org/extra/clang-tidy/checks/bugprone-incorrect-roundings.html

      This affects qRound at least under the default clang configuration.

      Here is a test to prevent regression: https://codereview.qt-project.org/c/qt/qtbase/+/321964

      However, this currently will fail. A rewrite of qRound is needed.

      Attachments

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

        Activity

          People

            david.skoland David Skoland
            david.skoland David Skoland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes