From 9bb7a55de9675e2e65c97eaa771554a9cef005ab Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Tue, 13 Jan 2004 01:05:28 +0000 Subject: [PATCH] add casts to silence compiler warnings --- src/mesa/main/arbparse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c index 4be39533ac2..d1ea9d4984d 100644 --- a/src/mesa/main/arbparse.c +++ b/src/mesa/main/arbparse.c @@ -2942,13 +2942,13 @@ parse_float (GLubyte ** inst, struct arb_program *Program) denom = 1; while (denom < tmp[2]) denom *= 10; - denom *= _mesa_pow( 10, leading_zeros ); + denom *= (GLint) _mesa_pow( 10, leading_zeros ); value += (GLfloat) tmp[2] / (GLfloat) denom; #if 0 if (tmp[0]) value *= -1; #endif - value *= _mesa_pow (10, (GLfloat) tmp[3] * (GLfloat) tmp[4]); + value *= (GLfloat) _mesa_pow (10, (GLfloat) tmp[3] * (GLfloat) tmp[4]); return value; } @@ -4503,10 +4503,10 @@ parse_masked_dst_reg (GLcontext * ctx, GLubyte ** inst, */ mask = *(*inst)++; - WriteMask[0] = (mask & (1 << 3)) >> 3; - WriteMask[1] = (mask & (1 << 2)) >> 2; - WriteMask[2] = (mask & (1 << 1)) >> 1; - WriteMask[3] = (mask & (1)); + WriteMask[0] = (GLboolean) (mask & (1 << 3)) >> 3; + WriteMask[1] = (GLboolean) (mask & (1 << 2)) >> 2; + WriteMask[2] = (GLboolean) (mask & (1 << 1)) >> 1; + WriteMask[3] = (GLboolean) (mask & (1)); return 0; } -- 2.30.2