Mesa (master): progs/gallium/unit: Move declaration before code.

Vinson Lee vlee at kemper.freedesktop.org
Fri Apr 2 05:30:29 UTC 2010


Module: Mesa
Branch: master
Commit: 36ed9a7f1356bc9c7c83388500ed8fbda8bff8aa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=36ed9a7f1356bc9c7c83388500ed8fbda8bff8aa

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Apr  1 22:29:23 2010 -0700

progs/gallium/unit: Move declaration before code.

Fixes SCons build.

---

 progs/gallium/unit/u_half_test.c |    3 ++-
 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 0486f73..9e3392e 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);




More information about the mesa-commit mailing list