[xiph-commits] r14564 - trunk/vorbis-tools/oggdec

sping at svn.xiph.org sping at svn.xiph.org
Mon Mar 10 06:11:40 PDT 2008


Author: sping
Date: 2008-03-10 06:11:40 -0700 (Mon, 10 Mar 2008)
New Revision: 14564

Modified:
   trunk/vorbis-tools/oggdec/oggdec.c
Log:
Warning fixed

Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c	2008-03-10 08:20:00 UTC (rev 14563)
+++ trunk/vorbis-tools/oggdec/oggdec.c	2008-03-10 13:11:40 UTC (rev 14564)
@@ -341,7 +341,7 @@
         if(!quiet && seekable) {
             done += ret/size;
             if((double)done/(double)length * 200. > (double)percent) {
-                percent = (double)done/(double)length *200;
+                percent = (int)((double)done/(double)length *200);
                 fprintf(stderr, "\r\t[%5.1f%%]", (double)percent/2.);
             }
         }



More information about the commits mailing list