aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2010-03-05 00:15:40 +0100
committerMichel Dänzer <[email protected]>2010-03-05 00:15:40 +0100
commit391b396f3fb300a912e6d9bfbf26f49cc30e52df (patch)
tree0b2fa9b169565ae5105ce80b4476d8c2af08dc5b /src/mesa/main/api_validate.c
parentb37c54150058c07ab2d3db2d7e5891a457b51e76 (diff)
Fix comparison of unsigned value against < 0.
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 326ad6f909b..e9359dbe5f6 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -147,7 +147,7 @@ check_index_bounds(GLcontext *ctx, GLsizei count, GLenum type,
vbo_get_minmax_index(ctx, &prim, &ib, &min, &max);
- if (min + basevertex < 0 ||
+ if ((int)(min + basevertex) < 0 ||
max + basevertex > ctx->Array.ArrayObj->_MaxElement) {
/* the max element is out of bounds of one or more enabled arrays */
_mesa_warning(ctx, "glDrawElements() index=%u is "