i965/vec4: Simplify opt_reduce_swizzle() using the swizzle utils.
[mesa.git] / src / mesa / drivers / dri / i965 / test_vf_float_conversions.cpp
index a21000c6645a95664b45d99fcfe488d76ff4ee54..6a8bceabf16a9782495ed66ec9737b08b38315c4 100644 (file)
@@ -60,7 +60,9 @@ union fu {
 static unsigned
 f2u(float f)
 {
-   return (union fu){ .f = f }.u;
+   union fu fu;
+   fu.f = f;
+   return fu.u;
 }
 
 TEST_F(vf_float_conversion_test, test_vf_to_float)