Commit 77e32839 authored by Eric Wong's avatar Eric Wong

compress.c: fix skips/distortion introduced in r7146

We need to ensure we're working with signed types when assigning them. git-svn-id: https://svn.musicpd.org/mpd/trunk@7181 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 6fbdc721
......@@ -354,7 +354,7 @@ void CompressDo(void *data, unsigned int length)
if (!pos)
pos = 1;
gr = ((gainTarget - gainCurrent) << 16)/pos;
gr = ((gainTarget - gainCurrent) << 16)/(int)pos;
/* Do the shiznit */
gf = gainCurrent << 16;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment