aboutsummaryrefslogtreecommitdiff
path: root/sound/rate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/rate.cpp')
-rw-r--r--sound/rate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/rate.cpp b/sound/rate.cpp
index 87ba79502d..a48e5ac1f6 100644
--- a/sound/rate.cpp
+++ b/sound/rate.cpp
@@ -229,7 +229,7 @@ public:
// Mix the data into the output buffer
ptr = _buffer;
- while (len--) {
+ while (len-- > 0) {
st_sample_t tmp0, tmp1;
tmp0 = tmp1 = *ptr++;
if (stereo) {