Mesa (mesa_7_5_branch): mesa: Use integer type with appropriate sign.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Jun 15 19:28:22 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: 37f2117cd132527ebf89f9294b2f35db87326460
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37f2117cd132527ebf89f9294b2f35db87326460
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Jun 15 19:17:07 2009 +0100
mesa: Use integer type with appropriate sign.
---
src/mesa/main/api_validate.c | 4 ++--
src/mesa/main/texenv.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 42d1e57..2c6f370 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -40,7 +40,7 @@ max_buffer_index(GLcontext *ctx, GLuint count, GLenum type,
{
const GLubyte *map = NULL;
GLuint max = 0;
- GLint i;
+ GLuint i;
if (elementBuf->Name) {
/* elements are in a user-defined buffer object. need to map it */
@@ -224,7 +224,7 @@ _mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode,
/* Vertex buffer object tests */
if (ctx->Array.ElementArrayBufferObj->Name) {
/* use indices in the buffer object */
- GLuint indexBytes;
+ GLsizei indexBytes;
if (type == GL_UNSIGNED_INT) {
indexBytes = count * sizeof(GLuint);
diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c
index 4d511f2..4c04a7e 100644
--- a/src/mesa/main/texenv.c
+++ b/src/mesa/main/texenv.c
@@ -959,7 +959,7 @@ void GLAPIENTRY
_mesa_GetTexBumpParameterivATI( GLenum pname, GLint *param )
{
const struct gl_texture_unit *texUnit;
- GLint i;
+ GLuint i;
GLint temp = 0;
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
@@ -1006,7 +1006,7 @@ void GLAPIENTRY
_mesa_GetTexBumpParameterfvATI( GLenum pname, GLfloat *param )
{
const struct gl_texture_unit *texUnit;
- GLint i;
+ GLuint i;
GLint temp = 0;
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
More information about the mesa-commit
mailing list