diff options
-rw-r--r-- | src/pipe.c | 2 |
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; |