1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

GCC: Suppress cast-align warnings

This commit is contained in:
reuk 2020-09-22 19:40:23 +01:00
parent f51db729c0
commit 4d27422d9f
11 changed files with 101 additions and 59 deletions

View file

@ -140,7 +140,7 @@ struct FFTFallback : public FFT::Instance
else
{
HeapBlock<char> heapSpace (scratchSize);
performRealOnlyForwardTransform (reinterpret_cast<Complex<float>*> (heapSpace.getData()), d);
performRealOnlyForwardTransform (unalignedPointerCast<Complex<float>*> (heapSpace.getData()), d);
}
}
@ -158,7 +158,7 @@ struct FFTFallback : public FFT::Instance
else
{
HeapBlock<char> heapSpace (scratchSize);
performRealOnlyInverseTransform (reinterpret_cast<Complex<float>*> (heapSpace.getData()), d);
performRealOnlyInverseTransform (unalignedPointerCast<Complex<float>*> (heapSpace.getData()), d);
}
}