From 3181a305edc9159c71036ff0070f1c3153ec3f1d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 17 Jan 2015 18:40:09 -0800 Subject: tests: Fix MSVC 2008 compilation warning Also include math.h to fix issues on some compilers. --- tests/test_dom_modify.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_dom_modify.cpp') diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index 1fb9dd3..5167358 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -2,7 +2,8 @@ #include #include -#include + +#include TEST_XML(dom_attr_assign, "") { @@ -1483,7 +1484,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(fp_roundtrip_base[i], e); + float value = ldexpf(static_cast(fp_roundtrip_base[i]), e); doc.text().set(value); CHECK(doc.text().as_float() == value); -- cgit v1.2.3