aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-11 12:16:58 -0800
committerChris Robinson <[email protected]>2019-02-11 12:16:58 -0800
commit69f6f561607a3c1c7d6947cb6ba98682df807051 (patch)
tree9a0edda3711f82913ccd5c9b8da1eb20b873f651 /Alc/effects
parent2fc8461c14074c7f19d6c226e1beaf55aed441a0 (diff)
Avoid using internal AL[u]int64 types
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/pshifter.cpp14
1 files changed, 7 insertions, 7 deletions
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<ALint>(d);
+ return static_cast<int>(d);
#endif
}