aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-11-23 09:33:52 +0000
committerRoss Burton <ross.burton@intel.com>2016-11-23 09:34:56 +0000
commit3467097b80b866b6a249bed7f4205b21a5e0b9e8 (patch)
tree6d788f79efb723f372de939be8e453e9bf1f677b
parent8889428de7758ec90516734c23272ee9eb635c2f (diff)
downloadmatchbox-panel-2-3467097b80b866b6a249bed7f4205b21a5e0b9e8.tar.gz
matchbox-panel-2-3467097b80b866b6a249bed7f4205b21a5e0b9e8.tar.bz2
matchbox-panel-2-3467097b80b866b6a249bed7f4205b21a5e0b9e8.zip
windowselector: fix signed type warnings
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--applets/windowselector/windowselector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/applets/windowselector/windowselector.c b/applets/windowselector/windowselector.c
index d269355..33f12f5 100644
--- a/applets/windowselector/windowselector.c
+++ b/applets/windowselector/windowselector.c
@@ -265,7 +265,7 @@ window_get_icon (WindowSelectorApplet *applet,
cur_height = datap[1];
cur_size = (cur_width + cur_height) / 2;
- if (nitems < (2 + cur_width * cur_height))
+ if (nitems < (gulong)(2 + cur_width * cur_height))
break;
if (!best_data) {
@@ -443,7 +443,8 @@ rebuild_menu (WindowSelectorApplet *applet)
GList *kids;
GdkDisplay *display;
Atom type;
- int format, result, i;
+ int format, result;
+ gulong i;
gulong nitems, bytes_after;
Window *windows;