[libwnck/wip/muktupavels/modernize: 6/14] util: fix few 'comparison between signed and unsigned integer' warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/modernize: 6/14] util: fix few 'comparison between signed and unsigned integer' warnings
- Date: Wed, 26 Apr 2017 11:33:03 +0000 (UTC)
commit 6c6528af8d49a88816cb1e302f612bca30bf8ff8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Nov 12 16:49:29 2016 +0200
util: fix few 'comparison between signed and unsigned integer' warnings
libwnck/util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/util.c b/libwnck/util.c
index c9a75ba..59da7aa 100644
--- a/libwnck/util.c
+++ b/libwnck/util.c
@@ -212,7 +212,7 @@ wnck_xid_read_resource_usage (GdkDisplay *gdisplay,
i = 0;
while (i < n_types)
{
- int t = types[i].resource_type;
+ guint t = types[i].resource_type;
if (t == pixmap_atom)
usage->n_pixmaps += types[i].count;
@@ -311,7 +311,7 @@ wnck_find_pid_for_resource_r (Display *xdisplay,
Window dummy;
Window *children;
guint n_children;
- int i;
+ guint i;
gulong found_pid = 0;
while (gtk_events_pending ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]