[Mesa-dev] [PATCH 3/8] util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h
Brian Paul
brian.e.paul at gmail.com
Tue Oct 16 17:35:24 PDT 2012
From: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/util/u_format_r11g11b10f.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_format_r11g11b10f.h b/src/gallium/auxiliary/util/u_format_r11g11b10f.h
index bd64b28..b883b31 100644
--- a/src/gallium/auxiliary/util/u_format_r11g11b10f.h
+++ b/src/gallium/auxiliary/util/u_format_r11g11b10f.h
@@ -205,7 +205,7 @@ static INLINE float uf10_to_f32(uint16_t val)
float scale, decimal;
exponent -= 15;
if (exponent < 0) {
- scale = 1.0 / (1 << -exponent);
+ scale = 1.0f / (1 << -exponent);
}
else {
scale = (float) (1 << exponent);
--
1.7.4.1
More information about the mesa-dev
mailing list