diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-07 22:52:22 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-05-07 22:52:22 -0700 |
commit | 0e08633cb33874840915db81b8c11503ec9efa0c (patch) | |
tree | de72ae237be17e4c9742751f8f5d4d5fa0bd2517 | |
parent | 7c0c3afd6f5bfc02fd98a2da03f7fb7d6567ccf3 (diff) |
Fix warnings about signed vs. unsigned comparison
Part of https://bugs.freedesktop.org/show_bug.cgi?id=25542
dsimple.c:262:19: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
for (i = 0; i < nchildren; i++) {
~ ^ ~~~~~~~~~
dsimple.c:296:19: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
for (i = 0; i < nchildren; i++) {
~ ^ ~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | dsimple.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -248,8 +248,7 @@ Window Window_With_Name (Display *disp, Window top, char *name) { Window *children, dummy; - unsigned int nchildren; - int i; + unsigned int nchildren, i; Window w = 0; char *window_name; @@ -281,8 +280,7 @@ Window_With_Name_Regex_Recurse (Display *disp, Window top, regex_t *reg_name) { Window *children, dummy; - unsigned int nchildren; - int i; + unsigned int nchildren, i; Window w = 0; char *window_name; |