diff options
author | Ian Romanick <[email protected]> | 2010-09-24 10:54:28 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-24 10:55:38 -0700 |
commit | e4bd50c232ed9d8c5a8a76a662a29a03d4237593 (patch) | |
tree | dda78e56abcb6e1d70a71daf74124516d9ccd2a4 /src/egl/drivers/glx/egl_glx.c | |
parent | 66c9ac76ad6b405d75ea099c1c2d3b2ba23f63ce (diff) |
egl: Fix several 'comparison between signed and unsigned integer' warnings
I hate GCC for requiring the (int) cast on sizeof.
Diffstat (limited to 'src/egl/drivers/glx/egl_glx.c')
-rw-r--r-- | src/egl/drivers/glx/egl_glx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/egl/drivers/glx/egl_glx.c b/src/egl/drivers/glx/egl_glx.c index 29bc8033d7d..8a46f9c4a61 100644 --- a/src/egl/drivers/glx/egl_glx.c +++ b/src/egl/drivers/glx/egl_glx.c @@ -162,7 +162,8 @@ static EGLBoolean convert_fbconfig(Display *dpy, GLXFBConfig fbconfig, struct GLX_egl_config *GLX_conf) { - int err = 0, attr, egl_attr, val, i; + int err = 0, attr, egl_attr, val; + unsigned i; EGLint conformant, config_caveat, surface_type; for (i = 0; i < ARRAY_SIZE(fbconfig_attributes); i++) { @@ -243,7 +244,8 @@ static EGLBoolean convert_visual(Display *dpy, XVisualInfo *vinfo, struct GLX_egl_config *GLX_conf) { - int err, attr, egl_attr, val, i; + int err, attr, egl_attr, val; + unsigned i; EGLint conformant, config_caveat, surface_type; /* the visual must support OpenGL */ |