diff options
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
| -rw-r--r-- | Source/Core/Common/MathUtil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index c8489a389a..3ad01bc9fe 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -70,8 +70,8 @@ struct Rectangle return left == r.left && top == r.top && right == r.right && bottom == r.bottom; } - T GetWidth() const { return abs(right - left); } - T GetHeight() const { return abs(bottom - top); } + T GetWidth() const { return std::abs(right - left); } + T GetHeight() const { return std::abs(bottom - top); } // If the rectangle is in a coordinate system with a lower-left origin, use // this Clamp. void ClampLL(T x1, T y1, T x2, T y2) |
