From 69f6f561607a3c1c7d6947cb6ba98682df807051 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 11 Feb 2019 12:16:58 -0800 Subject: Avoid using internal AL[u]int64 types --- Alc/effects/pshifter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Alc/effects') diff --git a/Alc/effects/pshifter.cpp b/Alc/effects/pshifter.cpp index 7bd7ada0..9fe5f867 100644 --- a/Alc/effects/pshifter.cpp +++ b/Alc/effects/pshifter.cpp @@ -50,11 +50,11 @@ inline int double2int(double d) { #if ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__)) && \ !defined(__SSE2_MATH__)) || (defined(_MSC_VER) && defined(_M_IX86_FP) && _M_IX86_FP < 2) - ALint sign, shift; - ALint64 mant; + int sign, shift; + int64_t mant; union { - ALdouble d; - ALint64 i64; + double d; + int64_t i64; } conv; conv.d = d; @@ -67,12 +67,12 @@ inline int double2int(double d) mant = (conv.i64&0xfffffffffffff_i64) | 0x10000000000000_i64; if(LIKELY(shift < 0)) - return (ALint)(mant >> -shift) * sign; - return (ALint)(mant << shift) * sign; + return (int)(mant >> -shift) * sign; + return (int)(mant << shift) * sign; #else - return static_cast(d); + return static_cast(d); #endif } -- cgit v1.2.3