mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +02:00
Type agnosticism for some other variables that were not sampleCount...
... in some cases, this fixes narrowings.
This commit is contained in:
@@ -1556,11 +1556,10 @@ void Sequence::Blockify(BlockArray &list, sampleCount start, samplePtr buffer, s
|
||||
{
|
||||
if (len <= 0)
|
||||
return;
|
||||
|
||||
const int num = (len + (mMaxSamples - 1)) / mMaxSamples;
|
||||
auto num = (len + (mMaxSamples - 1)) / mMaxSamples;
|
||||
list.reserve(list.size() + num);
|
||||
|
||||
for (int i = 0; i < num; i++) {
|
||||
for (decltype(num) i = 0; i < num; i++) {
|
||||
SeqBlock b;
|
||||
|
||||
const auto offset = i * len / num;
|
||||
|
||||
Reference in New Issue
Block a user