1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

Make many counts of tracks and channels unsigned...

... And in some places where a library uses signed types, assert that
the reported number is not negative.

What led me to this, is that there are many places where a size_t value for
an allocation is the product of a number of channels and some other number.
This commit is contained in:
Paul Licameli
2016-09-02 15:53:09 -04:00
parent ef23de6a60
commit 67cec5ad83
81 changed files with 272 additions and 262 deletions

View File

@@ -102,7 +102,8 @@ bool ExportCommand::Apply(CommandExecutionContext context)
Exporter exporter;
bool exportSuccess = exporter.Process(context.GetProject(), numChannels,
bool exportSuccess = exporter.Process(context.GetProject(),
std::max(0L, numChannels),
extension.c_str(), filename,
selection, t0, t1);