1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Don't use conversion of sampleCount to bool

This commit is contained in:
Paul Licameli
2016-08-22 15:04:15 -04:00
parent 69064edf20
commit 39df8d0b51
4 changed files with 9 additions and 9 deletions

View File

@@ -667,7 +667,7 @@ bool Sequence::InsertSilence(sampleCount s0, sampleCount len)
pos += idealSamples;
len -= idealSamples;
}
if (len) {
if (len != 0) {
sTrack.mBlock.push_back(SeqBlock(
make_blockfile<SilentBlockFile>(len), pos));
pos += len;
@@ -1186,7 +1186,7 @@ bool Sequence::Set(samplePtr buffer, sampleFormat format,
int b = FindBlock(start);
while (len) {
while (len != 0) {
SeqBlock &block = mBlock[b];
const sampleCount bstart = start - block.start;
const sampleCount fileLength = block.f->GetLength();