aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe.c')
-rw-r--r--src/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 23a23469c..a11cfb4c5 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -67,7 +67,7 @@ void music_pipe_free(void)
/** return the index of the chunk after i */
static inline unsigned successor(unsigned i)
{
- assert(i <= music_pipe.num_chunks);
+ assert(i < music_pipe.num_chunks);
++i;
return i == music_pipe.num_chunks ? 0 : i;