diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-28 11:52:49 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-07 17:59:53 +0000 |
commit | 2b927f88ad3d97e5fd1abd13b67724a86dd10404 (patch) | |
tree | 5664010c4062ba7bd0cfde81904f46724e62cdc1 /src/Trap.c | |
parent | 229c65d2dd6de511a005127245dc28d426ad6860 (diff) |
Resolve -Wsign-compare warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Trap.c')
-rw-r--r-- | src/Trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -46,7 +46,7 @@ XRenderCompositeTrapezoids (Display *dpy, { xRenderTrapezoidsReq *req; int n; - long len; + unsigned long len; GetReq(RenderTrapezoids, req); req->reqType = info->codes->major_opcode; @@ -58,10 +58,10 @@ XRenderCompositeTrapezoids (Display *dpy, req->xSrc = xSrc; req->ySrc = ySrc; n = ntrap; - len = ((long) n) * (SIZEOF (xTrapezoid) >> 2); + len = ((unsigned long) n) * (SIZEOF (xTrapezoid) >> 2); if (len > (max_req - req->length)) { n = (max_req - req->length) / (SIZEOF (xTrapezoid) >> 2); - len = ((long)n) * (SIZEOF (xTrapezoid) >> 2); + len = ((unsigned long) n) * (SIZEOF (xTrapezoid) >> 2); } SetReqLen (req, len, len); len <<= 2; |