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 13:48:25 +0000
commit23dd5c8057aca0ec2e64fc91a8d21b50c843d80c (patch)
tree95c578679d911d6a76ccf10c1a880d8f5c571a39
parentb6d8ad944dd37847355cf39711d211b2d646b0d9 (diff)
downloadmatchbox-panel-2-23dd5c8057aca0ec2e64fc91a8d21b50c843d80c.tar.gz
matchbox-panel-2-23dd5c8057aca0ec2e64fc91a8d21b50c843d80c.tar.bz2
matchbox-panel-2-23dd5c8057aca0ec2e64fc91a8d21b50c843d80c.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;