mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
f0fa6a5e86
commit
bc3ca485ae
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue