summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qutfcodec.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-08-10 13:22:38 +0200
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-11-19 10:56:41 +0000
commit72c68f5f220d691b475b42374b40039b99620876 (patch)
treea0ec5f34acec23c7a6740e18dd341ae8cf7588fd /src/corelib/codecs/qutfcodec.cpp
parentc7934f2489e2eb9a539206bab35f335b1943c5bd (diff)
Reimplement qt_inf/qt_snan/qt_qnan using std::numeric_limits.
Qt already assumes a working IEEE-754 implementation, so we can rely on a working std::numeric_limits<double>. This patch also gets rid of three cases of type-punning with unions (which is undefined behavior in C++). Change-Id: Ic3747f49d55e372960abf2091c1d5752c1eccdff Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/codecs/qutfcodec.cpp')
0 files changed, 0 insertions, 0 deletions