mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Workaround build breakers. Needs review.
These changes fix a broken build in Windows. #include <algorithm> needed for min/max to be in std. decltype(+name) was declaring a const variable, that could not be incremented. Changed to auto.
This commit is contained in:
@@ -116,7 +116,7 @@ bool CompareAudioCommand::Apply(CommandExecutionContext context)
|
||||
mTrack0->Get((samplePtr)buff0, floatSample, position, block);
|
||||
mTrack1->Get((samplePtr)buff1, floatSample, position, block);
|
||||
|
||||
for (decltype(+block) buffPos = 0; buffPos < block; ++buffPos)
|
||||
for (auto buffPos = 0; buffPos < block; ++buffPos)
|
||||
{
|
||||
if (CompareSample(buff0[buffPos], buff1[buffPos]) > errorThreshold)
|
||||
{
|
||||
|
Reference in New Issue
Block a user