From bdd15b5749b45929fa642c3e47997f52eb07fbe5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 4 May 2004 15:11:06 +0000 Subject: Fix minor warnings found with g++. --- src/mesa/tnl/t_context.h | 2 +- src/mesa/tnl/t_vertex.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/tnl') diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index d20f126c5d..b9fc7b8ea0 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -253,7 +253,7 @@ typedef void (*attrfv_func)( const GLfloat * ); struct _tnl_dynfn { struct _tnl_dynfn *next, *prev; - int key; + GLuint key; char *code; }; diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index fc076190e4..dcb6aef16b 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -940,7 +940,7 @@ void _tnl_get_attr( GLcontext *ctx, const void *vin, GLuint j; for (j = 0; j < attr_count; j++) { - if (a[j].attrib == (int)attr) { + if (a[j].attrib == attr) { a[j].extract( &a[j], dest, (GLubyte *)vin + a[j].vertoffset ); return; } @@ -963,7 +963,7 @@ void _tnl_set_attr( GLcontext *ctx, void *vout, GLuint j; for (j = 0; j < attr_count; j++) { - if (a[j].attrib == (int)attr) { + if (a[j].attrib == attr) { a[j].insert[4-1]( &a[j], (GLubyte *)vout + a[j].vertoffset, src ); return; } -- cgit v1.2.3