diff options
Diffstat (limited to 'test/endian_str_test.cpp')
| -rw-r--r-- | test/endian_str_test.cpp | 4 |
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); |
