diff options
| author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-08-10 13:22:38 +0200 |
|---|---|---|
| committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-11-19 10:56:41 +0000 |
| commit | 72c68f5f220d691b475b42374b40039b99620876 (patch) | |
| tree | a0ec5f34acec23c7a6740e18dd341ae8cf7588fd /src/corelib/codecs/qutfcodec.cpp | |
| parent | c7934f2489e2eb9a539206bab35f335b1943c5bd (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
