From b0b5bf823210ce74f47f6fa8d8ff070bf467aa96 Mon Sep 17 00:00:00 2001 From: oparviai Date: Sun, 10 Feb 2008 16:36:25 +0000 Subject: [PATCH] Bugfix: Use 'ulong' datatype for pointer typecast for 64bit compatibility --- source/SoundTouch/mmx_optimized.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SoundTouch/mmx_optimized.cpp b/source/SoundTouch/mmx_optimized.cpp index 838ff06..f5a1445 100644 --- a/source/SoundTouch/mmx_optimized.cpp +++ b/source/SoundTouch/mmx_optimized.cpp @@ -227,7 +227,7 @@ void FIRFilterMMX::setCoefficients(const short *coeffs, uint newLength, uint uRe // Ensure that filter coeffs array is aligned to 16-byte boundary delete[] filterCoeffsUnalign; filterCoeffsUnalign = new short[2 * newLength + 8]; - filterCoeffsAlign = (short *)(((uint)filterCoeffsUnalign + 15) & -16); + filterCoeffsAlign = (short *)(((ulong)filterCoeffsUnalign + 15) & -16); // rearrange the filter coefficients for mmx routines for (i = 0;i < length; i += 4)