From bf66e4410aac459fd416e66b8ece7dbc832ee070 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 24 Aug 2016 13:49:32 -0400 Subject: [PATCH] Use long long for argument passed to wxString::ToLongLong --- src/Sequence.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Sequence.cpp b/src/Sequence.cpp index 0536b058d..97538bdf3 100644 --- a/src/Sequence.cpp +++ b/src/Sequence.cpp @@ -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")))