summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/pcmbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 068c7aa1d3..cc454a49ce 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -241,7 +241,7 @@ static struct chunkdesc * index_chunkdesc_offs(size_t index, int offset)
241 241
242 if (offset != 0) 242 if (offset != 0)
243 { 243 {
244 i = (i + offset) % pcmbuf_desc_count; 244 i = (i + offset) % (int)pcmbuf_desc_count;
245 245
246 /* remainder => modulus */ 246 /* remainder => modulus */
247 if (i < 0) 247 if (i < 0)