Changed compute_allocation_table() so it handles ebands that start and end in the same allocation band. Also fixed a minor C89 issue.
diff --git a/libcelt/vq.c b/libcelt/vq.c
index a59411c..0b8fe3c 100644
--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -360,6 +360,7 @@
int i;
celt_word32 E = EPSILON;
celt_word16 g;
+ celt_word32 t;
celt_norm *xptr = X;
for (i=0;i<N;i++)
{
@@ -369,7 +370,7 @@
#ifdef FIXED_POINT
int k = celt_ilog2(E)>>1;
#endif
- celt_word32 t = VSHR32(E, (k-7)<<1);
+ t = VSHR32(E, (k-7)<<1);
g = MULT16_16_Q15(value, celt_rsqrt_norm(t));
xptr = X;