summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/nvvertexec.c
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2003-08-30 14:45:04 +0000
committerKarl Schultz <[email protected]>2003-08-30 14:45:04 +0000
commitdc24230de7f913969b52dee3579bb8fa3d50a8c0 (patch)
tree721e30477f9c529d562fa4bd2b71e465b4ed7fd0 /src/mesa/main/nvvertexec.c
parentd12a871b21adee531661f4cf6561d2ffda685359 (diff)
Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions.
Diffstat (limited to 'src/mesa/main/nvvertexec.c')
-rw-r--r--src/mesa/main/nvvertexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/nvvertexec.c b/src/mesa/main/nvvertexec.c
index 73d5440c79a..e41bdfb8503 100644
--- a/src/mesa/main/nvvertexec.c
+++ b/src/mesa/main/nvvertexec.c
@@ -689,7 +689,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program)
{
GLfloat t[4];
fetch_vector1( &inst->SrcReg[0], state, t );
- t[0] = t[1] = t[2] = t[3] = _mesa_pow(2.0, t[0]);
+ t[0] = t[1] = t[2] = t[3] = (GLfloat)_mesa_pow(2.0, t[0]);
store_vector4( &inst->DstReg, state, t );
}
break;
@@ -706,7 +706,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program)
GLfloat t[4], u[4];
fetch_vector1( &inst->SrcReg[0], state, t );
fetch_vector1( &inst->SrcReg[1], state, u );
- t[0] = t[1] = t[2] = t[3] = _mesa_pow(t[0], u[0]);
+ t[0] = t[1] = t[2] = t[3] = (GLfloat)_mesa_pow(t[0], u[0]);
store_vector4( &inst->DstReg, state, t );
}
break;