Missed an errant useless float var in encode-side codebook lookup
authorMonty <xiphmont@xiph.org>
Tue, 9 Mar 2010 18:45:14 +0000 (18:45 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 9 Mar 2010 18:45:14 +0000 (18:45 +0000)
svn path=/trunk/vorbis/; revision=16958

lib/res0.c

index 10a71a6..8639e76 100644 (file)
@@ -358,7 +358,7 @@ static int local_book_besterror(codebook *book,int *a){
       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){