From a6e669f1da619f88d58839807e0c3a908bf6ced5 Mon Sep 17 00:00:00 2001 From: Michael Panzlaff Date: Wed, 25 Aug 2021 17:50:38 +0200 Subject: PR: implement review corrections 2 --- arm7/lib/src/SND_seq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arm7/lib/src') diff --git a/arm7/lib/src/SND_seq.c b/arm7/lib/src/SND_seq.c index e16ca9be..d4f6b7b1 100644 --- a/arm7/lib/src/SND_seq.c +++ b/arm7/lib/src/SND_seq.c @@ -711,7 +711,7 @@ static void TrackUpdateChannel(struct SNDTrack *track, struct SNDPlayer *player, for (struct SNDExChannel *chn = track->channelLLHead; chn != NULL; chn = chn->channelLLNext) { - chn->userDecay2 = (short)fader; + chn->userDecay2 = (s16)fader; if (chn->envStatus == 3) continue; @@ -820,7 +820,7 @@ static void TrackPlayNote( chn->sweepPitch = track->sweepPitch; if (track->flags.portamento) - chn->sweepPitch += (short)((track->portamentoKey - midiKey) << 6); + chn->sweepPitch += (s16)((track->portamentoKey - midiKey) << 6); if (track->portamentoTime == 0) { -- cgit v1.2.3