Mesa (master): util: fix MSVC double/ float conversion warning in u_format_r11g11b10f.h
Brian Paul
brianp at kemper.freedesktop.org
Wed Oct 17 16:15:52 UTC 2012
Module: Mesa
Branch: master
Commit: a0785544e34bd35a7cfadbacd2e191af395f78be
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0785544e34bd35a7cfadbacd2e191af395f78be
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 16 18:32:57 2012 -0600
util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h
Reviewed-by: Jose Fonseca <jfonseca 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);
More information about the mesa-commit
mailing list