summaryrefslogtreecommitdiffstats
path: root/LICENSE.PREVIEW.COMMERCIAL
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-12-17 13:07:17 -0800
committerThiago Macieira <thiago.macieira@intel.com>2016-01-11 05:20:23 +0000
commitac2bde9caf41764eacca4f9ece1b724dc924babf (patch)
treeb1ccba53eff1ac4f0d0c9d4291dae8a02057e02a /LICENSE.PREVIEW.COMMERCIAL
parent29f41e5e3858c7fdb51909eb7cc9a0bb440600ff (diff)
QVariant: make sure two floating points compare equal if they are equal
Not just fuzzily equal. The fuzzy comparison fails for infinities, since the expression p1 - p2 where p1 = p2 = infinity is NaN. And NaN comparisons are always false. As a nice side-effect, we don't do the more expensive computation of a multiplication if the two numbers really are equal. Task-number: QTBUG-50036 Change-Id: I11f559ef75544c50b3f8ffff1420cec7c7273295 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'LICENSE.PREVIEW.COMMERCIAL')
0 files changed, 0 insertions, 0 deletions