Use long long for argument passed to wxString::ToLongLong

This commit is contained in:
Paul Licameli 2016-08-24 13:49:32 -04:00
parent 2949a080d2
commit bf66e4410a
1 changed files with 4 additions and 2 deletions

View File

@ -792,8 +792,6 @@ sampleCount Sequence::GetBestBlockSize(sampleCount start) const
bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
{
sampleCount nValue;
/* handle waveblock tag and its attributes */
if (!wxStrcmp(tag, wxT("waveblock"))) {
SeqBlock wb;
@ -804,6 +802,8 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
const wxChar *attr = *attrs++;
const wxChar *value = *attrs++;
long long nValue = 0;
if (!value)
break;
@ -857,6 +857,8 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
if (!value)
break;
long long nValue = 0;
const wxString strValue = value; // promote string, we need this for all
if (!wxStrcmp(attr, wxT("maxsamples")))