aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-07-20 21:16:07 +0000
committerBrian Paul <[email protected]>2004-07-20 21:16:07 +0000
commit782a32b847d097c33a8fc44d3443be08f967e616 (patch)
tree1210136c1314ec606006d8d819a7ba9179cc73da
parent5fe90292f8720671704236552079412a319308b8 (diff)
fix compare w/ zero warnings (bug 988766)
-rw-r--r--src/mesa/drivers/dri/i915/i915_debug.c2
-rw-r--r--src/mesa/tnl_dd/t_dd_dmatmp.h9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_debug.c b/src/mesa/drivers/dri/i915/i915_debug.c
index 7a5777d71af..054b561605a 100644
--- a/src/mesa/drivers/dri/i915/i915_debug.c
+++ b/src/mesa/drivers/dri/i915/i915_debug.c
@@ -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);
diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h
index 5ba6920804e..4322f26da4c 100644
--- a/src/mesa/tnl_dd/t_dd_dmatmp.h
+++ b/src/mesa/tnl_dd/t_dd_dmatmp.h
@@ -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;