From 003ec710291bf258b8ce357edc15804347f71cb8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 22 Nov 2008 15:31:17 +0000 Subject: [PATCH] Compiler suggested "parentheses around comparison in operand of ^". So I added them. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2232 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/example/filledrect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/trunk/src/modules/example/filledrect.cpp b/synfig-core/trunk/src/modules/example/filledrect.cpp index b826588..ca5b988 100644 --- a/synfig-core/trunk/src/modules/example/filledrect.cpp +++ b/synfig-core/trunk/src/modules/example/filledrect.cpp @@ -332,12 +332,12 @@ FilledRect::accelerated_render(Context context,Surface *surface,int quality, con //the bounds of the rectangle Point p[2] = {point1,point2}; - if((p[0][0] > p[1][0]) ^ wpp < 0) + if((p[0][0] > p[1][0]) ^ (wpp < 0)) { swap(p[0][0],p[1][0]); } - if((p[0][1] > p[1][1]) ^ hpp < 0) + if((p[0][1] > p[1][1]) ^ (hpp < 0)) { swap(p[0][1],p[1][1]); } -- 2.7.4