diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_half.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_half.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h index 966d213bdd5..afce14f3603 100644 --- a/src/gallium/auxiliary/util/u_half.h +++ b/src/gallium/auxiliary/util/u_half.h @@ -123,7 +123,7 @@ util_half_to_float(uint16_t f16) f32.ui |= 0xff << 23; /* Sign */ - f32.ui |= (f16 & 0x8000) << 16; + f32.ui |= (uint32_t)(f16 & 0x8000) << 16; return f32.f; } |