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

Fixes for templated code which could default-initialise a SIMDRegister object while expecting to get a zero-initialised value

This commit is contained in:
jules 2017-11-30 16:59:16 +00:00
parent 8f02179bbf
commit 7dd8fa993e
5 changed files with 12 additions and 11 deletions

View file

@ -153,7 +153,7 @@ void WindowingFunction<FloatType>::fillWindowingTables (FloatType* samples, size
// DC frequency amplitude must be one
if (normalize)
{
FloatType sum = {};
FloatType sum (0);
for (size_t i = 0; i < size; ++i)
sum += samples[i];