From d067b5279925a967e0465db759f30f1c3e901910 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 10 Jun 2013 23:08:03 +0000 Subject: [PATCH] fixed windows build and added new test to vc++ project --- mk/windoze/megaglest_tests.vcxproj | 1 + mk/windoze/vc2012/megaglest_tests.vcxproj | 1 + source/shared_lib/include/graphics/math_util.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mk/windoze/megaglest_tests.vcxproj b/mk/windoze/megaglest_tests.vcxproj index 0dcd0c5c..f6eb31e7 100644 --- a/mk/windoze/megaglest_tests.vcxproj +++ b/mk/windoze/megaglest_tests.vcxproj @@ -98,6 +98,7 @@ + diff --git a/mk/windoze/vc2012/megaglest_tests.vcxproj b/mk/windoze/vc2012/megaglest_tests.vcxproj index 2c5f06a6..f2baff4e 100644 --- a/mk/windoze/vc2012/megaglest_tests.vcxproj +++ b/mk/windoze/vc2012/megaglest_tests.vcxproj @@ -101,6 +101,7 @@ + diff --git a/source/shared_lib/include/graphics/math_util.h b/source/shared_lib/include/graphics/math_util.h index 59ab4476..bcce54fc 100644 --- a/source/shared_lib/include/graphics/math_util.h +++ b/source/shared_lib/include/graphics/math_util.h @@ -330,7 +330,7 @@ inline T truncateDecimal(const T &value, int precision=6) { return result; */ - T precNum = pow(10, precision); + T precNum = std::pow((T)10, (T)precision); T result = xs_CRoundToInt(value * precNum); result /= precNum; return result;