summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2010-03-05 00:15:40 +0100
committerMichel Dänzer <michel@daenzer.net>2010-03-05 00:15:40 +0100
commit391b396f3fb300a912e6d9bfbf26f49cc30e52df (patch)
tree0b2fa9b169565ae5105ce80b4476d8c2af08dc5b
parentb37c54150058c07ab2d3db2d7e5891a457b51e76 (diff)
downloadexternal_mesa3d-391b396f3fb300a912e6d9bfbf26f49cc30e52df.zip
external_mesa3d-391b396f3fb300a912e6d9bfbf26f49cc30e52df.tar.gz
external_mesa3d-391b396f3fb300a912e6d9bfbf26f49cc30e52df.tar.bz2
Fix comparison of unsigned value against < 0.
-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 326ad6f..e9359db 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 "