summaryrefslogtreecommitdiff
path: root/plugins/clone/src/clone.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-05 01:16:02 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-05 01:16:02 +0800
commit0813bc61659e212af9df22e30c655fd35f9fbc3d (patch)
tree3ec00a4a294e6843a35daf174a34d482d350b9f1 /plugins/clone/src/clone.cpp
parentda75fba9478b5fd7461ae31500f95bb21227c412 (diff)
downloadcompiz-with-glib-mainloop-0813bc61659e212af9df22e30c655fd35f9fbc3d.tar.gz
compiz-with-glib-mainloop-0813bc61659e212af9df22e30c655fd35f9fbc3d.tar.bz2
plugins: fix warnings
Diffstat (limited to 'plugins/clone/src/clone.cpp')
-rw-r--r--plugins/clone/src/clone.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/clone/src/clone.cpp b/plugins/clone/src/clone.cpp
index afdd39b..ac3413d 100644
--- a/plugins/clone/src/clone.cpp
+++ b/plugins/clone/src/clone.cpp
@@ -200,7 +200,9 @@ CloneScreen::glPaintOutput (const GLScreenPaintAttrib &attrib,
unsigned int dstForThisOutput, outputId = 0;
CompRegion sRegion = region;
- dstForThisOutput = outputId = (output->id () != ~0) ? output->id () : 0;
+ dstForThisOutput = outputId =
+ ((unsigned int) output->id () != (unsigned int) ~0) ?
+ output->id () : 0;
if (!grab || (unsigned int) grabbedOutput != outputId)
{
@@ -224,7 +226,7 @@ CloneScreen::glPaintOutput (const GLScreenPaintAttrib &attrib,
}
}
- if (output->id () != ~0)
+ if (output->id () != (unsigned int) ~0)
status = gScreen->glPaintOutput (attrib, transform, sRegion,
&screen->outputDevs ()[dstForThisOutput], mask);
else
@@ -533,8 +535,8 @@ CloneScreen::outputChangeNotify ()
for (it = clones.begin (); it != clones.end (); it++)
{
- if ((*it)->dst >= screen->outputDevs ().size () ||
- (*it)->src >= screen->outputDevs ().size ())
+ if ((unsigned int) (*it)->dst >= screen->outputDevs ().size () ||
+ (unsigned int) (*it)->src >= screen->outputDevs ().size ())
{
clones.erase (it);
it = clones.begin ();