From 197e88cdcc62ac1c9e8be2240c52c4f108ac27b6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 15 May 2018 01:20:39 -0700 Subject: Avoid using unsigned values for signed --- Alc/effects/pshifter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/effects') diff --git a/Alc/effects/pshifter.c b/Alc/effects/pshifter.c index 7411f705..9c2bb2e9 100644 --- a/Alc/effects/pshifter.c +++ b/Alc/effects/pshifter.c @@ -125,7 +125,7 @@ static inline ALint double2int(ALdouble d) if(UNLIKELY(shift >= 63 || shift < -52)) return 0; - mant = (conv.i64&U64(0xfffffffffffff)) | U64(0x10000000000000); + mant = (conv.i64&I64(0xfffffffffffff)) | I64(0x10000000000000); if(LIKELY(shift < 0)) return (ALint)(mant >> -shift) * sign; return (ALint)(mant << shift) * sign; -- cgit v1.2.3