diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-07-04 18:47:26 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-07-05 06:41:52 +0200 |
| commit | 1fe60cbcc3c476f5f4bc4bce49d4e73d99c49d3d (patch) | |
| tree | 359e0864ddb390dadac6a64df2253c374443a864 /src/gui/platform/unix/qunixnativeinterface.cpp | |
| parent | 5f9ab113e32fb6ba81eab58acd9f99186af80534 (diff) | |
QVariant: always compare floating point with double precision
When Qt is configured with `-qreal float`, then we should still compare
QVariants containing floating point values with the full precision of
the stored type, and not cast to qreal (ie. float).
Cast all floating point types up to double, which is the highest-
precision floating point type we support in Qt. This might have a small
performance impact when compiling with `-qreal float`, if the FPU does
not perform well with double-precision floating point values.
We don't test any `-qreal float` configurations in CI, so not adding
a unit test for this.
Fixes: QTBUG-114991
Pick-to: 6.6 6.5 6.2
Change-Id: I198ec2c39913b501ef2fe99ae3048b160baa1fd8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/platform/unix/qunixnativeinterface.cpp')
0 files changed, 0 insertions, 0 deletions
