From 8dc0bfb47a9e53d8773eedd094d2112df81ac6c4 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 11 May 2018 19:17:14 -0700 Subject: [PATCH] Cleaned up some warnings. --- Frameworks/HighlyTheoretical/HighlyTheoretical/Core/yam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/HighlyTheoretical/HighlyTheoretical/Core/yam.c b/Frameworks/HighlyTheoretical/HighlyTheoretical/Core/yam.c index 6f57a23dd..e09c04933 100644 --- a/Frameworks/HighlyTheoretical/HighlyTheoretical/Core/yam.c +++ b/Frameworks/HighlyTheoretical/HighlyTheoretical/Core/yam.c @@ -2411,7 +2411,7 @@ static void __fastcall dsp_sample_interpret(struct YAM_STATE *state) { if((mpro->__kisxzbon) & 0x80) { x = state->temp[(state->mdec_ct)&0x7F]; state->xzbchoice[XZBCHOICE_ACC] = - ((((sint64)x) * ((sint64)(state->yychoice[YYCHOICE_FRC_REG]))) >> 12) + x; + (sint32)(((((sint64)x) * ((sint64)(state->yychoice[YYCHOICE_FRC_REG]))) >> 12) + x); continue; } state->xzbchoice[XZBCHOICE_TEMP] = state->temp[((mpro->t_0rrrrrrr)+(state->mdec_ct))&0x7F]; @@ -2457,7 +2457,7 @@ static void __fastcall dsp_sample_interpret(struct YAM_STATE *state) { // // Multiply and accumulate // - state->xzbchoice[XZBCHOICE_ACC] = ((((sint64)x) * ((sint64)y)) >> 12) + b; + state->xzbchoice[XZBCHOICE_ACC] = (sint32)(((((sint64)x) * ((sint64)y)) >> 12) + b); // // Temp write //