From 4cffca0da71771d0d51ba4cd4842d2d93aa2946e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Oct 2012 21:38:23 +0300 Subject: Fix some conversions. --- src/utils/mathutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index caed0d2f8..aa6dcecea 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -116,7 +116,7 @@ inline float weightedAverage(const float n1, const float n2, const float w) inline int roundDouble(const double v) { - return (v > 0.0) ? (v + 0.5) : (v - 0.5); + return (v > 0.0) ? static_cast(v + 0.5) : static_cast(v - 0.5); } inline int powerOfTwo(const int input) -- cgit v1.2.3-70-g09d2