summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-20 10:31:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-20 10:31:39 -0800
commit9e0db673a7869861eeb6eccbc8270a019f4aacd1 (patch)
tree13a0da1ec7575d050b65a69f8af52f40771c0293
parenta43105c0da6613798437afaa531c2a576f8efc99 (diff)
downloadxorg-lib-libXRes-9e0db673a7869861eeb6eccbc8270a019f4aacd1.tar.gz
Resolve -Wsign-compare warnings from gcc
XRes.c: In function ‘XResQueryClients’: XRes.c:121:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < rep.num_clients; i++) { ^ XRes.c: In function ‘XResQueryClientResources’: XRes.c:176:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < rep.num_types; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/XRes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XRes.c b/src/XRes.c
index 506ca9e..fd130a8 100644
--- a/src/XRes.c
+++ b/src/XRes.c
@@ -118,7 +118,7 @@ XResQueryClients(Display *dpy, int *num_clients, XResClient **clients)
clnts = NULL;
if (clnts != NULL) {
- for (int i = 0; i < rep.num_clients; i++) {
+ for (CARD32 i = 0; i < rep.num_clients; i++) {
xXResClient scratch;
_XRead(dpy, (char *) &scratch, sz_xXResClient);
@@ -173,7 +173,7 @@ XResQueryClientResources(Display *dpy, XID xid,
typs = NULL;
if (typs != NULL) {
- for (int i = 0; i < rep.num_types; i++) {
+ for (CARD32 i = 0; i < rep.num_types; i++) {
xXResType scratch;
_XRead(dpy, (char *) &scratch, sz_xXResType);