summaryrefslogtreecommitdiff
path: root/src/Xrender.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-28 11:52:49 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-07 17:59:53 +0000
commit2b927f88ad3d97e5fd1abd13b67724a86dd10404 (patch)
tree5664010c4062ba7bd0cfde81904f46724e62cdc1 /src/Xrender.c
parent229c65d2dd6de511a005127245dc28d426ad6860 (diff)
downloadxorg-lib-libXrender-2b927f88ad3d97e5fd1abd13b67724a86dd10404.tar.gz
Resolve -Wsign-compare warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xrender.c')
-rw-r--r--src/Xrender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xrender.c b/src/Xrender.c
index a72df5e..299f9d4 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -500,7 +500,7 @@ XRenderQueryFormats (Display *dpy)
_XRead (dpy, (char *) xData, rlength);
format = xri->format;
xFormat = (xPictFormInfo *) xData;
- for (int nf = 0; nf < rep.numFormats; nf++)
+ for (unsigned int nf = 0; nf < rep.numFormats; nf++)
{
format->id = xFormat->id;
format->type = xFormat->type;
@@ -567,7 +567,7 @@ XRenderQueryFormats (Display *dpy)
}
xSubpixel = (CARD32 *) xScreen;
screen = xri->screen;
- for (int ns = 0; ns < rep.numSubpixel; ns++)
+ for (unsigned int ns = 0; ns < rep.numSubpixel; ns++)
{
screen->subpixel = *xSubpixel;
xSubpixel++;