From 0c76494939446afd6a41ebf8be0ea10dd3d18283 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 31 May 2019 15:45:33 +0200 Subject: [PATCH] include/Spectre/Math/Vector2.inl: less than or equal operator should be written as "<=" not "=<" --- include/Spectre/Math/Vector2.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Spectre/Math/Vector2.inl b/include/Spectre/Math/Vector2.inl index 0eea069..fee4141 100644 --- a/include/Spectre/Math/Vector2.inl +++ b/include/Spectre/Math/Vector2.inl @@ -86,7 +86,7 @@ inline bool operator<(const Vector2& a, const Vector2& b) template inline bool operator<=(const Vector2& a, const Vector2& b) { - return a.x =< b.x && a.y <= b.y; + return a.x <= b.x && a.y <= b.y; } template @@ -294,7 +294,7 @@ inline bool operator>(T s, const Vector2& v) } template -inline bool operator>=(const Vector2& v, T s) +inline bool operator>=(const Vector2& v, T s) { return v.x >= s && v.y >= s; }