From dc24230de7f913969b52dee3579bb8fa3d50a8c0 Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Sat, 30 Aug 2003 14:45:04 +0000 Subject: Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions. --- src/mesa/math/m_norm_tmp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/math/m_norm_tmp.h') diff --git a/src/mesa/math/m_norm_tmp.h b/src/mesa/math/m_norm_tmp.h index 2b7945586e..a20cb05017 100644 --- a/src/mesa/math/m_norm_tmp.h +++ b/src/mesa/math/m_norm_tmp.h @@ -323,9 +323,9 @@ TAG(normalize_normals)( const GLmatrix *mat, GLdouble len = x * x + y * y + z * z; if (len > 1e-50) { len = INV_SQRTF(len); - out[i][0] = x * len; - out[i][1] = y * len; - out[i][2] = z * len; + out[i][0] = (GLfloat)(x * len); + out[i][1] = (GLfloat)(y * len); + out[i][2] = (GLfloat)(z * len); } else { out[i][0] = x; -- cgit v1.2.3