Mesa (master): llvmpipe: add 'f' suffix to 1.0 in fixed_to_float()
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 28 23:17:58 UTC 2013
Module: Mesa
Branch: master
Commit: e90c56bc4eb6d6f33861eb1b89ee9127e361e407
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e90c56bc4eb6d6f33861eb1b89ee9127e361e407
Author: Brian Paul <brianp at vmware.com>
Date: Thu Mar 28 17:17:26 2013 -0600
llvmpipe: add 'f' suffix to 1.0 in fixed_to_float()
---
src/gallium/drivers/llvmpipe/lp_setup_tri.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 97a76d8..45ac6a7 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -54,7 +54,7 @@ subpixel_snap(float a)
static INLINE float
fixed_to_float(int a)
{
- return a * (1.0 / FIXED_ONE);
+ return a * (1.0f / FIXED_ONE);
}
More information about the mesa-commit
mailing list