[libwnck/wip/muktupavels/modernize: 21/21] 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: 21/21] util: fix few 'comparison between signed and unsigned integer' warnings
- Date: Wed, 26 Apr 2017 11:20:35 +0000 (UTC)
commit 35f67aecccd45776bb2c9b4333c342a8f5adf6bc
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 b884ae1..e10086e 100644
--- a/libwnck/util.c
+++ b/libwnck/util.c
@@ -211,7 +211,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;
@@ -310,7 +310,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]