i965: Fix union usage for G++ <= 4.6.
authorVinson Lee <vlee@freedesktop.org>
Sat, 6 Dec 2014 02:05:06 +0000 (18:05 -0800)
committerVinson Lee <vlee@freedesktop.org>
Tue, 9 Dec 2014 00:25:16 +0000 (16:25 -0800)
commitd20235f79a4b2786c984175b502b97ac73648781
tree320aa3599af188dce151ca45d69192a66c56a3fc
parent70dd3df344ddeb4b6d0f2e990dd1afaf4e46e39f
i965: Fix union usage for G++ <= 4.6.

This patch fixes this build error with G++ <= 4.6.

  CXX    test_vf_float_conversions.o
test_vf_float_conversions.cpp: In function ‘unsigned int f2u(float)’:
test_vf_float_conversions.cpp:63:20: error: expected primary-expression before ‘.’ token

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86939
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/test_vf_float_conversions.cpp