summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 14:22:09 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 14:22:09 +0900
commit9dfa6063be5ea506cc5a43d352fa2f7dcfa68dff (patch)
tree8e5bcda634e9f3f8fb2953ef86b84acf2d4ba9e4 /src
parenta148025d94505bca08f9baa1689048032bb60e2c (diff)
gallium: Avoid double arithmetic.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/translate/translate_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c
index 17e37d1745..4c8179ffa8 100644
--- a/src/gallium/auxiliary/translate/translate_generic.c
+++ b/src/gallium/auxiliary/translate/translate_generic.c
@@ -121,7 +121,7 @@ emit_##NAME(const float *attrib, void *ptr) \
#define FROM_16_SNORM(i) ((float) ((short *) ptr)[i] / 32767.0f)
#define FROM_32_SNORM(i) ((float) ((int *) ptr)[i] / 2147483647.0f)
-#define FROM_32_FIXED(i) (((int *) ptr)[i] / 65536.0)
+#define FROM_32_FIXED(i) (((int *) ptr)[i] / 65536.0f)
#define TO_64_FLOAT(x) ((double) x)
#define TO_32_FLOAT(x) (x)