aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-09-05 19:45:38 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-09-05 19:45:38 +0000
commite74b728ed7f1cb802d99b2922150913e564c8b49 (patch)
treecad27c0d5ccb51c1676faf3c050032dbc3059a74
parentbfab78801445ec36e70ceed9d93651374d2c9015 (diff)
downloadqmmp-e74b728ed7f1cb802d99b2922150913e564c8b49.tar.gz
qmmp-e74b728ed7f1cb802d99b2922150913e564c8b49.tar.bz2
qmmp-e74b728ed7f1cb802d99b2922150913e564c8b49.zip
fixed g++ warning (patch by Christian Morales Vega) (Closes issue 371)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1879 90c681e8-e032-0410-971d-27865f9a5e38
-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;
}
}