1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-02 12:35:11 +02:00

some uses of size_t

This commit is contained in:
Paul Licameli
2016-08-24 10:43:43 -04:00
parent bf66e4410a
commit ee5a0db9ff
5 changed files with 8 additions and 7 deletions

View File

@@ -298,7 +298,7 @@ BlockFilePtr LegacyBlockFile::BuildFromXML(const wxString &projDir, const wxChar
sampleCount len, sampleFormat format)
{
wxFileNameWrapper fileName;
sampleCount summaryLen = 0;
size_t summaryLen = 0;
bool noRMS = false;
long nValue;
@@ -324,6 +324,7 @@ BlockFilePtr LegacyBlockFile::BuildFromXML(const wxString &projDir, const wxChar
else if (!wxStrcmp(attr, wxT("format")) && XMLValueChecker::IsValidSampleFormat(nValue))
format = (sampleFormat)nValue;
else if (!wxStrcmp(attr, wxT("summarylen")) && (nValue > 0))
// Note attribute "summarylen" was written as int, no need for 64 bits
summaryLen = nValue;
}
}