summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_aatriangle.c
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2001-09-19 20:30:44 +0000
committerKarl Schultz <[email protected]>2001-09-19 20:30:44 +0000
commit7c4268176eaaeb45003db4d5042a518b84c9f6dc (patch)
tree7359bd33704a6bd32b471049be4744ce27db099f /src/mesa/swrast/s_aatriangle.c
parent2fc06af470da1929ac2fffc8d38a5d5ac87490bb (diff)
silence compiler warnings (last batch for src)
Diffstat (limited to 'src/mesa/swrast/s_aatriangle.c')
-rw-r--r--src/mesa/swrast/s_aatriangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_aatriangle.c b/src/mesa/swrast/s_aatriangle.c
index d5350ff8531..83f145ca9fd 100644
--- a/src/mesa/swrast/s_aatriangle.c
+++ b/src/mesa/swrast/s_aatriangle.c
@@ -1,4 +1,4 @@
-/* $Id: s_aatriangle.c,v 1.18 2001/05/29 15:23:15 brianp Exp $ */
+/* $Id: s_aatriangle.c,v 1.19 2001/09/19 20:30:44 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -347,7 +347,7 @@ compute_lambda(const GLfloat sPlane[4], const GLfloat tPlane[4],
if (rho2 == 0.0F)
return 0.0;
else
- return log(rho2) * 1.442695 * 0.5; /* 1.442695 = 1/log(2) */
+ return (GLfloat) (log(rho2) * 1.442695 * 0.5); /* 1.442695 = 1/log(2) */
}