summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-04-01 22:29:23 -0700
committerVinson Lee <vlee@vmware.com>2010-04-01 22:29:23 -0700
commit36ed9a7f1356bc9c7c83388500ed8fbda8bff8aa (patch)
treea252c71e406d41f0453b81e79a6226c6f7a163c0 /progs
parent3e1a3923f44bfa550ea152c57c99f9ec558b7571 (diff)
progs/gallium/unit: Move declaration before code.
Fixes SCons build.
Diffstat (limited to 'progs')
-rw-r--r--progs/gallium/unit/u_half_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/gallium/unit/u_half_test.c b/progs/gallium/unit/u_half_test.c
index 0486f731acd..9e3392e6d62 100644
--- a/progs/gallium/unit/u_half_test.c
+++ b/progs/gallium/unit/u_half_test.c
@@ -14,8 +14,9 @@ main(int argc, char **argv)
{
half h = (half) i;
union fi f;
+ half rh;
f.ui = util_half_to_floatui(h);
- half rh = util_floatui_to_half(f.ui);
+ rh = util_floatui_to_half(f.ui);
if(h != rh)
{
printf("Roundtrip failed: %x -> %x = %f -> %x\n", h, f.ui, f.f, rh);