diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-14 16:54:53 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-14 16:54:53 -0700 |
commit | 23bbb667935de678fadb16e254f319a8c24ac71a (patch) | |
tree | b0e842c62fc4d086ec336dea9d5c6154e0b99564 | |
parent | f7c9b2cdd92cfcc1fcf0eb94c7fc5daaed2786f4 (diff) |
XineramaQueryScreens: fix -Wsign-compare warning
Xinerama.c: In function ‘XineramaQueryScreens’:
Xinerama.c:308:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < rep.number; i++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/Xinerama.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xinerama.c b/src/Xinerama.c index ee1f630..90fd5a1 100644 --- a/src/Xinerama.c +++ b/src/Xinerama.c @@ -303,7 +303,7 @@ XineramaQueryScreens( if ((rep.number > 0) && (rep.number <= 1024)) scrnInfo = Xmalloc(sizeof(XineramaScreenInfo) * rep.number); if (scrnInfo != NULL) { - int i; + CARD32 i; for (i = 0; i < rep.number; i++) { xXineramaScreenInfo scratch; |