diff options
Diffstat (limited to 'src/utils/mathutils.h')
-rw-r--r-- | src/utils/mathutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(v + 0.5) : static_cast<int>(v - 0.5); } inline int powerOfTwo(const int input) |