aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-02-05 10:17:45 +0000
committerEric Wong <normalperson@yhbt.net>2008-02-05 10:17:45 +0000
commit77e3283973c0703a16448889c176d81695c73cc7 (patch)
tree2902e7d4916bca9adf37cdb68502bdd9d7d075ee /src
parent6fbdc721d972d8c1f823acd5473a3dce8836d5fa (diff)
downloadmpd-77e3283973c0703a16448889c176d81695c73cc7.tar.gz
mpd-77e3283973c0703a16448889c176d81695c73cc7.tar.xz
mpd-77e3283973c0703a16448889c176d81695c73cc7.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compress.c b/src/compress.c
index 2f7719356..3d8b913b4 100644
--- a/src/compress.c
+++ b/src/compress.c
@@ -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;