Skip to content

Commit

Permalink
MathUtils: silence warning about implicit cast from double to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Mar 3, 2015
1 parent 1adbc5e commit e73ad61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/utils/MathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace MathUtils
{
assert(x > static_cast<double>(INT_MIN / 2) - 1.0);
assert(x < static_cast<double>(INT_MAX / 2) + 1.0);
return x;
return static_cast<int>(x);
}

inline int64_t abs(int64_t a)
Expand Down

0 comments on commit e73ad61

Please sign in to comment.