diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-25 13:44:26 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-25 13:44:26 -0700 |
commit | 94c08f27c69a1c8ed1549ffc94f46b0f447806b9 (patch) | |
tree | 8fc9592b7e1147ffbab0f85d88f10b77819f96f8 /tests/test_dom_modify.cpp | |
parent | fe58041a619f6854d8bf7fb05ff7f718465cc9b9 (diff) |
tests: Fix Borland C++ 5.4 compilation
The tests now compile fine but crash on the first floating-point exception
despite our attempts to disable them in main()...
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r-- | tests/test_dom_modify.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index c4ee024..e84f098 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -6,10 +6,6 @@ #include <math.h> #include <string.h> -#ifdef __BORLANDC__ -using std::ldexpf; -#endif - TEST_XML(dom_attr_assign, "<node/>") { xml_node node = doc.child(STR("node")); @@ -1647,7 +1643,7 @@ TEST(dom_fp_roundtrip_float) { for (size_t i = 0; i < sizeof(fp_roundtrip_base) / sizeof(fp_roundtrip_base[0]); ++i) { - float value = ldexpf(static_cast<float>(fp_roundtrip_base[i]), e); + float value = static_cast<float>(ldexp(fp_roundtrip_base[i], e)); doc.text().set(value); CHECK(fp_equal(doc.text().as_float(), value)); |