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;