summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-05 00:09:30 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-05 00:09:30 +0800
commitf8b656e8f8001f57869b417c5c88617193f890ab (patch)
treec59cbb8252b02c205ff7f6823965026167c89fe6
parent66f4693a0bc49c2cac25a37823fdbbb14d3aa970 (diff)
downloadzcomp-f8b656e8f8001f57869b417c5c88617193f890ab.tar.gz
zcomp-f8b656e8f8001f57869b417c5c88617193f890ab.tar.bz2
core: fix warnings
-rw-r--r--src/window.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f1d8f82..0c0cfff 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -448,10 +448,10 @@ PrivateWindow::setFullscreenMonitors (CompFullscreenMonitorSet *monitors)
fullscreenMonitorsSet = false;
if (monitors &&
- monitors->left < outputs &&
- monitors->right < outputs &&
- monitors->top < outputs &&
- monitors->bottom < outputs)
+ (unsigned int) monitors->left < outputs &&
+ (unsigned int) monitors->right < outputs &&
+ (unsigned int) monitors->top < outputs &&
+ (unsigned int) monitors->bottom < outputs)
{
CompRect fsRect (screen->outputDevs ()[monitors->left].x1 (),
screen->outputDevs ()[monitors->top].y1 (),
@@ -3952,8 +3952,8 @@ PrivateWindow::readIconHint ()
}
k = 0;
- for (j = 0; j < height; j++)
- for (i = 0; i < width; i++)
+ for ((unsigned int) j = 0; j < height; j++)
+ for ((unsigned int) i = 0; i < width; i++)
colors[k++].pixel = XGetPixel (image, i, j);
for (i = 0; i < k; i += 256)
@@ -3976,9 +3976,9 @@ PrivateWindow::readIconHint ()
k = 0;
p = (CARD32 *) icon->data ();
- for (j = 0; j < height; j++)
+ for ((unsigned int) j = 0; j < height; j++)
{
- for (i = 0; i < width; i++)
+ for ((unsigned int) i = 0; i < width; i++)
{
if (maskImage && !XGetPixel (maskImage, i, j))
*p++ = 0;