qt6-bb10/src/corelib
Volker Hilsheimer 1fe60cbcc3 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>
2023-07-05 06:41:52 +02:00
..
animation Fix build with -sanitize undefined 2023-06-26 19:32:11 +02:00
compat QUrl: Add QUrl::fromEncoded(QByteArrayView) overload 2023-06-08 03:09:52 +03:00
doc Move tetrix example to manual test 2023-06-29 14:49:13 +02:00
global Make qt_noop() constexpr and noexcept (for C++) 2023-06-29 01:54:10 +02:00
io QStorageInfo: use the same code on Linux and Android 2023-06-29 18:19:52 +03:00
ipc Doc: Add \relates command to two global swap() functions 2023-06-23 07:08:22 +00:00
itemmodels Fix qdoc link warnings after moving a few examples to manual tests 2023-06-27 17:39:23 +02:00
kernel QVariant: always compare floating point with double precision 2023-07-05 06:41:52 +02:00
mimetypes Convert remaining QT_NO_XMLSTREAM* to use feature system 2023-05-15 14:02:43 +02:00
platform permissions: Handle unknown permission statuses gracefully 2023-06-29 03:13:10 +02:00
plugin Move plug and paint example to manual test 2023-06-30 08:50:59 +02:00
serialization Fix typo in QXmlStreamReader error message 2023-06-30 11:55:13 +02:00
text QStorageInfo/Linux: use readAll() with /proc/self/mountinfo 2023-06-27 02:28:21 +03:00
thread Remove all class-level [[nodiscard]] from the code-base 2023-06-28 20:48:45 +00:00
time Return TZ time-zone backend's tranCache() as a const reference 2023-06-16 21:37:11 +02:00
tools Introduce openssl-hash feature 2023-06-29 12:49:14 +00:00
tracing Fix crash at exit when tracing 2023-04-26 10:46:06 +00:00
CMakeLists.txt Unity-build: exclude qrandom.cpp (#undef's Q_ASSERT/_X()) 2023-07-04 14:53:15 +00:00
Qt6AndroidMacros.cmake Evaluate the QT_ANDROID_DEPLOYMENT_SETTINGS_FILE property 2023-06-28 11:13:16 +00:00
Qt6CTestMacros.cmake Disable CMake test project build tests on WASM 2023-01-11 19:36:26 +01:00
Qt6CoreConfigExtras.cmake.in Avoid resetting CMAKE_AUTOMOC_MACRO_NAMES 2023-02-28 18:15:24 +01:00
Qt6CoreConfigureFileTemplate.in
Qt6CoreDeploySupport.cmake CMake: Add NO_COMPILER_RUNTIME to deploy script macros 2023-03-13 16:31:31 -05:00
Qt6CoreMacros.cmake Make WASM export names different across modules 2023-06-20 09:08:03 +02:00
Qt6WasmMacros.cmake wasm: add preload config for shared libraries build 2023-07-04 15:42:02 +02:00
QtCompressMimeDatabase.cmake Replace the scripting-based mime types compression mechanism with CMake 2022-12-01 02:23:51 +01:00
QtCore.dynlist Remove old pre-6.0 hooks 2021-10-22 19:12:07 -07:00
QtInstallPaths.cmake.in Move install paths from CoreConfigExtras.cmake to a separate file 2022-10-25 16:05:11 +02:00
configure.cmake Introduce openssl-hash feature 2023-06-29 12:49:14 +00:00
debug_script.py Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qt_cmdline.cmake Add CTF tracing backend 2023-01-13 12:43:46 +02:00