summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-10-18 21:30:06 +0200
committerBenjamin Otte <otte@gnome.org>2009-10-18 21:30:06 +0200
commita70705b2ede8c0dc401f28405641e70f8a6d8d92 (patch)
treed6815b722a2a2e374912d45d2610c6fc1a71a2de
parent96117c1212be2bf39a300a212dec85466f49f31e (diff)
[xlib] Fix compiler warnings
-rw-r--r--src/cairo-xlib-screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index fc2535b9..8e29475b 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -395,13 +395,13 @@ _cairo_xlib_screen_get_gc (cairo_xlib_screen_t *info,
if (old == 0)
break;
- if (((old >> 0) & 0xff) == (unsigned) depth)
+ if (((old >> 0) & 0xff) == depth)
i = 0;
- else if (((old >> 8) & 0xff) == (unsigned) depth)
+ else if (((old >> 8) & 0xff) == depth)
i = 1;
- else if (((old >> 16) & 0xff) == (unsigned) depth)
+ else if (((old >> 16) & 0xff) == depth)
i = 2;
- else if (((old >> 24) & 0xff) == (unsigned) depth)
+ else if (((old >> 24) & 0xff) == depth)
i = 3;
else
break;