[Scummvm-cvs-logs] SF.net SVN: scummvm: [29086] scummvm/trunk/sound/rate.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 24 19:14:56 CEST 2007


Revision: 29086
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29086&view=rev
Author:   lordhoto
Date:     2007-09-24 10:14:56 -0700 (Mon, 24 Sep 2007)

Log Message:
-----------
Silence some warnings.

Modified Paths:
--------------
    scummvm/trunk/sound/rate.cpp

Modified: scummvm/trunk/sound/rate.cpp
===================================================================
--- scummvm/trunk/sound/rate.cpp	2007-09-24 01:46:45 UTC (rev 29085)
+++ scummvm/trunk/sound/rate.cpp	2007-09-24 17:14:56 UTC (rev 29086)
@@ -222,7 +222,7 @@
 	while (obuf < oend) {
 
 		// read enough input samples so that opos < 0
-		while (FRAC_ONE <= opos) {
+		while ((frac_t)FRAC_ONE <= opos) {
 			// Check if we have to refill the buffer
 			if (inLen == 0) {
 				inPtr = inBuf;
@@ -242,7 +242,7 @@
 
 		// Loop as long as the outpos trails behind, and as long as there is
 		// still space in the output buffer.
-		while (opos < FRAC_ONE && obuf < oend) {
+		while (opos < (frac_t)FRAC_ONE && obuf < oend) {
 			// interpolate
 			st_sample_t out0, out1;
 			out0 = (st_sample_t)(ilast0 + (((icur0 - ilast0) * opos + FRAC_HALF) >> FRAC_BITS));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list