From e09875701b980b8c4578fb310a922c9934c34eef Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 18 Oct 2015 23:12:50 -0700 Subject: glx: Fix header length error checking in __glXDisp_RenderLarge glxcmds.c:2206:46: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare,Semantic Issue] if ((cmdlen = safe_pad(hdr->length)) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reviewed-by: Adam Jackson Signed-off-by: Jeremy Huddleston Sequoia --- glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glx') diff --git a/glx/glxcmds.c b/glx/glxcmds.c index cbd4ede39..0416dac09 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -2182,7 +2182,7 @@ __glXDisp_RenderLarge(__GLXclientState * cl, GLbyte * pc) __GLXrenderSizeData entry; int extra = 0; int left = (req->length << 2) - sz_xGLXRenderLargeReq; - size_t cmdlen; + int cmdlen; int err; /* -- cgit v1.2.3