diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index 0f991e176..e0d4e9ee5 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -544,7 +544,7 @@ static INLINE void FetchADPCMData(channel_struct *chan, s32 *data) chan->index = precalcindextbl[chan->index][data4bit & 0x7]; } - chan->lastsampcnt = chan->sampcnt; + chan->lastsampcnt = (int)chan->sampcnt; #ifdef SPU_INTERPOLATE *data = Interpolate((s32)chan->pcm16b_last,(s32)chan->pcm16b,chan->sampcnt);