diff options
author | Brian Paul <[email protected]> | 2012-10-16 18:32:57 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-17 10:13:30 -0600 |
commit | a0785544e34bd35a7cfadbacd2e191af395f78be (patch) | |
tree | 7798d32b0dc5a81542d637d19ccb4249c59dc229 /src/gallium | |
parent | f03191048668ebcda56053f4c908e1ac0d98edd0 (diff) |
util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 bd64b2896b4..b883b318e03 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); |