aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2007-09-24 17:14:56 +0000
committerJohannes Schickel2007-09-24 17:14:56 +0000
commit88da0d4d0095827cef5c9fc07ec7c29bd44e465f (patch)
treefa60c7dfd34b59e1b1504d76bc5191e75737a21c
parente95bc92824f48d18a81e89b311e48f684cd6f76b (diff)
downloadscummvm-rg350-88da0d4d0095827cef5c9fc07ec7c29bd44e465f.tar.gz
scummvm-rg350-88da0d4d0095827cef5c9fc07ec7c29bd44e465f.tar.bz2
scummvm-rg350-88da0d4d0095827cef5c9fc07ec7c29bd44e465f.zip
Silence some warnings.
svn-id: r29086
-rw-r--r--sound/rate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/rate.cpp b/sound/rate.cpp
index 953a305ec2..91213b312c 100644
--- a/sound/rate.cpp
+++ b/sound/rate.cpp
@@ -222,7 +222,7 @@ int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_samp
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 @@ int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_samp
// 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));