From: Ian Romanick Date: Fri, 5 Feb 2010 00:00:58 +0000 (-0800) Subject: glx: Change type to eliminate 'comparison between signed and unsigned' warning X-Git-Tag: 062012170305~12852^2~781^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098;p=profile%2Fivi%2Fmesa.git glx: Change type to eliminate 'comparison between signed and unsigned' warning --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 504d17f..19538f2 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -1636,7 +1636,6 @@ static int __glXQueryContextInfo(Display * dpy, GLXContext ctx) else { int *propList, *pProp; int nPropListBytes; - int i; nPropListBytes = numValues << 3; propList = (int *) Xmalloc(nPropListBytes); @@ -1644,6 +1643,8 @@ static int __glXQueryContextInfo(Display * dpy, GLXContext ctx) retval = 0; } else { + unsigned i; + _XRead(dpy, (char *) propList, nPropListBytes); pProp = propList; for (i = 0; i < numValues; i++) {