From f33e81f7c3942350dd7a510f340e196543be9e3e Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 28 May 2009 18:10:50 +0000 Subject: [PATCH] We compare the result of sputrunc alwyas with s32 type so just return it. Well, the real reason is that i'm so tired of that 50 lines warning. --- desmume/src/SPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index fb69d36da..4429bcbf1 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -57,8 +57,8 @@ extern SoundInterface_struct *SNDCoreList[]; -static FORCEINLINE u32 sputrunc(float f) { return u32floor(f); } -static FORCEINLINE u32 sputrunc(double d) { return u32floor(d); } +static FORCEINLINE s32 sputrunc(float f) { return u32floor(f); } +static FORCEINLINE s32 sputrunc(double d) { return u32floor(d); } static FORCEINLINE s32 spumuldiv7(s32 val, u8 multiplier) { assert(multiplier <= 127); return (multiplier == 127) ? val : ((val * multiplier) >> 7);