Mesa (master): glx: Change type to eliminate ' comparison between signed and unsigned' warning

Ian Romanick idr at kemper.freedesktop.org
Wed Feb 17 19:44:23 UTC 2010


Module: Mesa
Branch: master
Commit: 1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Feb  4 16:00:58 2010 -0800

glx: Change type to eliminate 'comparison between signed and unsigned' warning

---

 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++) {




More information about the mesa-commit mailing list