From: Karl Schultz Date: Thu, 4 Apr 2002 18:25:40 +0000 (+0000) Subject: casts to silence compiler warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d030ba65177842dbc022160ba18d5451dc140e4;p=mesa.git casts to silence compiler warnings --- diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index 98ff5456048..92483e69994 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -1,4 +1,4 @@ -/* $Id: t_context.h,v 1.38 2002/02/13 00:53:20 keithw Exp $ */ +/* $Id: t_context.h,v 1.39 2002/04/04 18:25:40 kschultz Exp $ */ /* * Mesa 3-D graphics library @@ -96,8 +96,8 @@ /* Flags for IM->TexCoordSize. Enough flags for 16 units. */ -#define TEX_0_SIZE_3 0x1 -#define TEX_0_SIZE_4 0x10001 +#define TEX_0_SIZE_3 (unsigned)0x1 +#define TEX_0_SIZE_4 (unsigned)0x10001 #define TEX_SIZE_3(unit) (TEX_0_SIZE_3 << (unit)) #define TEX_SIZE_4(unit) (TEX_0_SIZE_4 << (unit)) diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index 2097ecc8cc4..fea8c11f2b7 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_program.c,v 1.10 2002/01/22 14:35:17 brianp Exp $ */ +/* $Id: t_vb_program.c,v 1.11 2002/04/04 18:25:40 kschultz Exp $ */ /* * Mesa 3-D graphics library @@ -150,7 +150,7 @@ static GLboolean run_vp( GLcontext *ctx, struct gl_pipeline_stage *stage ) struct vertex_buffer *VB = &tnl->vb; struct vp_machine *machine = &(ctx->VertexProgram.Machine); struct vp_program *program = ctx->VertexProgram.Current; - GLint i; + GLuint i; _mesa_init_tracked_matrices(ctx); _mesa_init_vp_registers(ctx); /* init temp and result regs */