fix compare w/ zero warnings (bug 988766)

This commit is contained in:
Brian Paul 2004-07-20 21:16:07 +00:00
parent 5fe90292f8
commit 782a32b847
2 changed files with 5 additions and 6 deletions

View File

@ -285,7 +285,7 @@ void i915_disassemble_program( const GLuint *program, GLuint sz )
for (i = 1 ; i < sz ; i+=3, program+=3) {
GLuint opcode = program[0] & (0x1f<<24);
if (opcode >= A0_NOP && opcode <= A0_SLT)
if ((GLint) opcode >= A0_NOP && opcode <= A0_SLT)
print_arith_op(opcode >> 24, program);
else if (opcode >= T0_TEXLD && opcode <= T0_TEXKILL)
print_tex_op(opcode >> 24, program);

View File

@ -1,9 +1,8 @@
/*
* Mesa 3-D graphics library
* Version: 3.5
* Version: 6.1
*
* Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -1203,7 +1202,7 @@ static GLboolean TAG(validate_render)( GLcontext *ctx,
ok = GL_TRUE;
} else if (HAVE_TRI_STRIPS && (ctx->_TriangleCaps & DD_FLATSHADE)) {
if (HAVE_ELTS) {
ok = count < GET_SUBSEQUENT_VB_MAX_ELTS();
ok = (GLint) count < GET_SUBSEQUENT_VB_MAX_ELTS();
}
else {
ok = GL_FALSE;
@ -1216,7 +1215,7 @@ static GLboolean TAG(validate_render)( GLcontext *ctx,
if (HAVE_QUADS) {
ok = GL_TRUE;
} else if (HAVE_ELTS) {
ok = count < GET_SUBSEQUENT_VB_MAX_ELTS();
ok = (GLint) count < GET_SUBSEQUENT_VB_MAX_ELTS();
}
else {
ok = GL_FALSE;