summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-08-23 12:31:16 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-08-23 12:31:16 +0200
commite7ff7f78be6c14b6c48e451d6d1f597af379f8f8 (patch)
tree4ab948473e284e415d0c6637263fd86c0eff1ead
parentf3dfd5969d447515635c077b700a2d4957208167 (diff)
util: Silence compiler warnings on Windows.
-rw-r--r--src/gallium/auxiliary/util/u_math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.c b/src/gallium/auxiliary/util/u_math.c
index 8bf6551b6e..0729114d6a 100644
--- a/src/gallium/auxiliary/util/u_math.c
+++ b/src/gallium/auxiliary/util/u_math.c
@@ -39,7 +39,7 @@ init_pow2_table(void)
{
int i;
for (i = 0; i < POW2_TABLE_SIZE; i++) {
- pow2_table[i] = pow(2.0, i / POW2_TABLE_SCALE);
+ pow2_table[i] = (float) pow(2.0, i / POW2_TABLE_SCALE);
}
}