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

-qreal float configuration option does not compile

    XMLWordPrintable

Details

    • All
    • 6a6f1eabb (dev), 094a25ddb (dev), 580cf1748 (dev), b63c41548 (6.8), 72ccd58d7 (6.8), 5ac16f8fa (6.8), b770d1e05 (tqtc/lts-5.15), a74b550e2 (dev), 6c8d2e042 (6.8), d2648a0f4 (dev), 9c642cc62 (6.8), 2b22f95fc (6.7), 7564a368a (tqtc/lts-6.5), d7fdee24b (dev)

    Description

      qBound seem to accept only function attributes that are same type.

      There's multiple places where constants are given without type. Default type is double precission float(double). Fix could be to change constant to have float specifier ie. 0.0f. Or by casting, like it's done in most of places.

      -    size = qBound(0.0, size, 1.0);
      +    size = qBound(qreal(0.0), size, qreal(1.0));

      Attachments

        1. log.do_compile
          211 kB
          Stanley Morris

        Issue Links

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

          Activity

            People

              timblechmann tim blechmann
              jarihelaakoski Jari Helaakoski
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: