From 23bbb667935de678fadb16e254f319a8c24ac71a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 14 Oct 2022 16:54:53 -0700 Subject: XineramaQueryScreens: fix -Wsign-compare warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/Xinerama.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3