From: Karl Schultz Date: Thu, 18 Sep 2003 15:14:58 +0000 (+0000) Subject: Add casts to prevent double->float conversion compiler warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a01566e46811cf976996a763d2a2c4ef612e0ff6;p=mesa.git Add casts to prevent double->float conversion compiler warnings. --- diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index 9e5bcafd71a..c0c097a8d70 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -978,8 +978,8 @@ execute_program( GLcontext *ctx, { GLfloat a[4], result[4]; fetch_vector1( ctx, &inst->SrcReg[0], machine, program, a ); - result[0] = cos(a[0]); - result[1] = sin(a[0]); + result[0] = (GLfloat)cos(a[0]); + result[1] = (GLfloat)sin(a[0]); result[2] = 0.0; /* undefined! */ result[3] = 0.0; /* undefined! */ store_vector4( inst, machine, result );