From de74fc1b6b46b4d3a11af2efabfb54f813042664 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Sun, 19 Aug 2012 19:42:49 -0400
Subject: [PATCH] Remove C99ism in celt/tests/test_unit_mathops.c w/ fixed
 point build.

---
 celt/tests/test_unit_mathops.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/celt/tests/test_unit_mathops.c b/celt/tests/test_unit_mathops.c
index 9673de6c7..ea0af493c 100644
--- a/celt/tests/test_unit_mathops.c
+++ b/celt/tests/test_unit_mathops.c
@@ -209,13 +209,16 @@ void testilog2(void)
    opus_val32 x;
    for (x=1;x<=268435455;x+=127)
    {
-      opus_val32 lg = celt_ilog2(x);
+      opus_val32 lg;
+      opus_val32 y;
+
+      lg = celt_ilog2(x);
       if (lg<0 || lg>=31)
       {
          printf("celt_ilog2 failed: 0<=celt_ilog2(x)<31 (x = %d, celt_ilog2(x) = %d)\n",x,lg);
          ret = 1;
       }
-      opus_val32 y = 1<<lg;
+      y = 1<<lg;
 
       if (x<y || (x>>1)>=y)
       {
-- 
GitLab