Additional MSVC warning missed in the last commit.
authorGregory Maxwell <greg@xiph.org>
Mon, 15 Jul 2013 22:31:44 +0000 (15:31 -0700)
committerGregory Maxwell <greg@xiph.org>
Mon, 15 Jul 2013 22:31:44 +0000 (15:31 -0700)
src/opus_compare.c

index b73f454..faffc90 100644 (file)
@@ -364,7 +364,7 @@ int main(int _argc,const char **_argv){
     err+=Ef*Ef;
   }
   err=pow(err/nframes,1.0/16);
-  Q=100*(1-0.5f*(float)log(1+err)/log(1.13f));
+  Q=100*(1-0.5f*(float)log(1+err)/(float)log(1.13f));
   if(Q<0){
     fprintf(stderr,"Test vector FAILS\n");
     fprintf(stderr,"Internal weighted error is %f\n",err);