summaryrefslogtreecommitdiff
path: root/test/endian_str_test.cpp
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-08-02 21:53:13 +0200
committerljfa-ag <ljfa-ag@web.de>2015-08-02 21:53:13 +0200
commita46a8340864f5840d4f5981edbccec6256765c84 (patch)
treec9c706cf62a90d72cf87a0576078dfea1743e3b0 /test/endian_str_test.cpp
parentbe7e646d091bd1f250d77f443462607b5c27a419 (diff)
downloadProject-Tick-a46a8340864f5840d4f5981edbccec6256765c84.tar.gz
Project-Tick-a46a8340864f5840d4f5981edbccec6256765c84.zip
Use stof and stod instead of strtof and strtod
Diffstat (limited to 'test/endian_str_test.cpp')
-rw-r--r--test/endian_str_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/endian_str_test.cpp b/test/endian_str_test.cpp
index 873cf0276d..7f583249ca 100644
--- a/test/endian_str_test.cpp
+++ b/test/endian_str_test.cpp
@@ -135,8 +135,8 @@ void test_float()
std::stringstream str(std::ios::in | std::ios::out | std::ios::binary);
//C99 has hexadecimal floating point literals, C++ doesn't...
- const float fconst = strtof("-0xCDEF01p-63", nullptr); //-1.46325e-012
- const double dconst = strtod("-0x1DEF0102030405p-375", nullptr); //-1.09484e-097
+ const float fconst = std::stof("-0xCDEF01p-63"); //-1.46325e-012
+ const double dconst = std::stod("-0x1DEF0102030405p-375"); //-1.09484e-097
//We will be assuming IEEE 754 here
write_little(str, fconst);