projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compiler suggested "parentheses around comparison in operand of ^". So I added them.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
example
/
filledrect.cpp
diff --git
a/synfig-core/trunk/src/modules/example/filledrect.cpp
b/synfig-core/trunk/src/modules/example/filledrect.cpp
index
b826588
..
ca5b988
100644
(file)
--- 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};
//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]);
}
{
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]);
}
{
swap(p[0][1],p[1][1]);
}