From e73ad61c1acf9df6c78b23284b4edadc7e74ef75 Mon Sep 17 00:00:00 2001 From: montellese Date: Sat, 28 Feb 2015 23:19:30 +0100 Subject: [PATCH] MathUtils: silence warning about implicit cast from double to int --- xbmc/utils/MathUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/utils/MathUtils.h b/xbmc/utils/MathUtils.h index 82165f23d8303..08140b753490a 100644 --- a/xbmc/utils/MathUtils.h +++ b/xbmc/utils/MathUtils.h @@ -159,7 +159,7 @@ namespace MathUtils { assert(x > static_cast(INT_MIN / 2) - 1.0); assert(x < static_cast(INT_MAX / 2) + 1.0); - return x; + return static_cast(x); } inline int64_t abs(int64_t a)