diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-02-04 16:00:58 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-02-11 15:40:29 -0800 |
commit | 1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098 (patch) | |
tree | efcc3302272aff96a4f84e1bfdd29d08a37a9993 /src/glx | |
parent | 71a6fb15ceb6619d39029ff897daf2da4858b17e (diff) | |
download | external_mesa3d-1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098.zip external_mesa3d-1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098.tar.gz external_mesa3d-1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098.tar.bz2 |
glx: Change type to eliminate 'comparison between signed and unsigned' warning
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/glxcmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
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++) { |