glx: Change type to eliminate 'comparison between signed and unsigned' warning
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 5 Feb 2010 00:00:58 +0000 (16:00 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 11 Feb 2010 23:40:29 +0000 (15:40 -0800)
src/glx/glxcmds.c

index 504d17fe1735f54ded4e81f9e29b031af036cf9e..19538f2e5c09f493f94a41e07d0ce14307dee756 100644 (file)
@@ -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++) {