diff options
-rw-r--r-- | apps/pcmbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 9754f13bd9..068c7aa1d3 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c | |||
@@ -243,7 +243,7 @@ static struct chunkdesc * index_chunkdesc_offs(size_t index, int offset) | |||
243 | { | 243 | { |
244 | i = (i + offset) % pcmbuf_desc_count; | 244 | i = (i + offset) % pcmbuf_desc_count; |
245 | 245 | ||
246 | /* remainder => modulus */ | 246 | /* remainder => modulus */ |
247 | if (i < 0) | 247 | if (i < 0) |
248 | i += pcmbuf_desc_count; | 248 | i += pcmbuf_desc_count; |
249 | } | 249 | } |
@@ -811,7 +811,7 @@ static size_t crossfade_find_index(size_t index, size_t size) | |||
811 | while (i != chunk_widx) | 811 | while (i != chunk_widx) |
812 | { | 812 | { |
813 | size_t desc_size = index_chunkdesc(i)->size; | 813 | size_t desc_size = index_chunkdesc(i)->size; |
814 | 814 | ||
815 | if (size < desc_size) | 815 | if (size < desc_size) |
816 | return i + size; | 816 | return i + size; |
817 | 817 | ||