aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qmmp/recycler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmp/recycler.cpp b/src/qmmp/recycler.cpp
index cfaf52fb0..9ac95d774 100644
--- a/src/qmmp/recycler.cpp
+++ b/src/qmmp/recycler.cpp
@@ -76,7 +76,7 @@ void Recycler::add()
{
if(buffers[add_index]->nbytes)
{
- add_index = ++add_index % buffer_count;
+ add_index = (add_index + 1) % buffer_count;
current_count++;
}
}
@@ -97,7 +97,7 @@ void Recycler::done()
if (current_count)
{
current_count--;
- done_index = ++done_index % buffer_count;
+ done_index = (done_index + 1) % buffer_count;
}
}