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

SIMD: Remove unnecessary assertion from truncate fallback

This commit is contained in:
reuk 2021-08-04 15:53:51 +01:00
parent cef6974c7c
commit 449e4df275

View file

@ -124,10 +124,7 @@ struct SIMDFallbackOps
UnionType a {av};
for (size_t i = 0; i < n; ++i)
{
jassert (a.s[i] >= ScalarType (0));
a.s[i] = static_cast <ScalarType> (static_cast<int> (a.s[i]));
}
a.s[i] = static_cast<ScalarType> (static_cast<int> (a.s[i]));
return a.v;
}