diff options
author | ElectricSolstice <repairagent@yahoo.com> | 2015-02-16 18:58:41 -0800 |
---|---|---|
committer | ElectricSolstice <repairagent@yahoo.com> | 2015-02-16 18:58:41 -0800 |
commit | 0e1f34b49da3066bed94b316f22e6dd805509bf3 (patch) | |
tree | e966770a1bca9a3be47f756d6a498b8d61dd1b9c /core | |
parent | 2bea642583efeb68886e71950384f297f2d7ee12 (diff) |
Changed code to remove gcc -Wparentheses warnings.
Diffstat (limited to 'core')
-rw-r--r-- | core/math/geometry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/geometry.h b/core/math/geometry.h index 7e0cc01a22..4ad4db8523 100644 --- a/core/math/geometry.h +++ b/core/math/geometry.h @@ -519,9 +519,9 @@ public: bool s_ab = (b.x-a.x)*as_y-(b.y-a.y)*as_x > 0; - if((c.x-a.x)*as_y-(c.y-a.y)*as_x > 0 == s_ab) return false; + if(((c.x-a.x)*as_y-(c.y-a.y)*as_x > 0) == s_ab) return false; - if((c.x-b.x)*(s.y-b.y)-(c.y-b.y)*(s.x-b.x) > 0 != s_ab) return false; + if(((c.x-b.x)*(s.y-b.y)-(c.y-b.y)*(s.x-b.x) > 0) != s_ab) return false; return true; } |