mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
f031910486
commit
a0785544e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue