snd: properly fix the signedness warning in snd_mix.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-11-02 18:52:13 +10:30
parent 726e4365c1
commit 90f92ef6e9

View File

@ -258,7 +258,7 @@ SND_PaintChannelFrom8(channel_t *ch, sfxcache_t *sc, int count)
lscale = snd_scaletable[ch->leftvol >> 3];
rscale = snd_scaletable[ch->rightvol >> 3];
sfx = (signed char *)sc->data + ch->pos;
sfx = (unsigned char *)sc->data + ch->pos;
for (i = 0; i < count; i++) {
data = sfx[i];