summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-03-22 15:05:47 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-03-22 15:05:47 -0300
commitf706e3e5d1d93c5666a1edabec1aeee318996d6f (patch)
tree6cd00dbb9dcec62343f224fe6a5ae5899232975d /core
parent0302ea5b821939c68529195d223c35bc7f3ce7b1 (diff)
parentc0efa3fb5b8c545c34859cc722c3c8a2ada13e02 (diff)
Merge pull request #1380 from ElectricSolstice/wparentheses_removal
Changed code to remove gcc -Wparentheses warnings.
Diffstat (limited to 'core')
-rw-r--r--core/math/geometry.h4
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;
}