1
0
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:
James Crook
2016-08-23 21:46:12 +01:00
parent b20a9bacad
commit 781de82d02
10 changed files with 12 additions and 11 deletions

View File

@@ -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)
{