From: Brian Paul Date: Wed, 17 Oct 2012 00:32:57 +0000 (-0600) Subject: util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0785544e34bd35a7cfadbacd2e191af395f78be;p=mesa.git util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h Reviewed-by: Jose Fonseca --- 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);