diff options
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_packed_float.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_packed_float.c b/src/intel/compiler/brw_packed_float.c index 9b7687a756f..a97a176665b 100644 --- a/src/intel/compiler/brw_packed_float.c +++ b/src/intel/compiler/brw_packed_float.c @@ -63,7 +63,7 @@ brw_vf_to_float(unsigned char vf) /* ±0.0f is special cased. */ if (vf == 0x00 || vf == 0x80) { - fu.u = vf << 24; + fu.u = (unsigned)vf << 24; return fu.f; } |