Make LCG 16-bit clean
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Mon, 10 Jan 2011 15:02:58 +0000 (10:02 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Mon, 10 Jan 2011 15:02:58 +0000 (10:02 -0500)
libcelt/bands.c

index 09ff354..f19dd11 100644 (file)
@@ -875,7 +875,7 @@ static void quant_band(int encode, const CELTMode *m, int i, celt_norm *X, celt_
                   for (j=0;j<N;j++)
                   {
                      *seed = lcg_rand(*seed);
-                     X[j] = (int)(*seed)>>20;
+                     X[j] = (celt_int32)(*seed)>>20;
                   }
                } else {
                   /* Folded spectrum */