From 94c08f27c69a1c8ed1549ffc94f46b0f447806b9 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 25 Oct 2015 13:44:26 -0700 Subject: 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()... --- tests/test_dom_modify.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/test_dom_modify.cpp') 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 #include -#ifdef __BORLANDC__ -using std::ldexpf; -#endif - TEST_XML(dom_attr_assign, "") { 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(fp_roundtrip_base[i]), e); + float value = static_cast(ldexp(fp_roundtrip_base[i], e)); doc.text().set(value); CHECK(fp_equal(doc.text().as_float(), value)); -- cgit v1.2.3