intel/compiler: mark debug constant as const
[mesa.git] / src / intel / compiler / brw_packed_float.c
index 9b7687a756f7b46690c52bb06fd65249ba2f5f32..a97a176665bd120c9c317cf312a073ea0423792c 100644 (file)
@@ -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;
    }