[xiph-commits] r16958 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Mar 9 10:45:14 PST 2010


Author: xiphmont
Date: 2010-03-09 10:45:14 -0800 (Tue, 09 Mar 2010)
New Revision: 16958

Modified:
   trunk/vorbis/lib/res0.c
Log:
Missed an errant useless float var in encode-side codebook lookup


Modified: trunk/vorbis/lib/res0.c
===================================================================
--- trunk/vorbis/lib/res0.c	2010-03-09 17:13:11 UTC (rev 16957)
+++ trunk/vorbis/lib/res0.c	2010-03-09 18:45:14 UTC (rev 16958)
@@ -358,7 +358,7 @@
       if(c->lengthlist[i]>0){
         int this=0;
         for(j=0;j<dim;j++){
-          float val=(e[j]-a[j]);
+          int val=(e[j]-a[j]);
           this+=val*val;
         }
         if(best==-1 || this<best){



More information about the commits mailing list