i965: Avoid union literal, for old gcc compatibility.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86939
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Matt Turner 2014-12-02 11:18:47 -08:00
parent f0fa6a5e86
commit bc3ca485ae

View file

@ -60,7 +60,8 @@ union fu {
static unsigned
f2u(float f)
{
return (union fu){ .f = f }.u;
union fu fu = { .f = f };
return fu.u;
}
TEST_F(vf_float_conversion_test, test_vf_to_float)