beltoforion/muparser

Two warnings at muParserTokenReader.cpp

Closed this issue · 0 comments

Type of variable auto iEnd not equals the function return type int.

auto iEnd = m_strFormula.find_first_not_of(a_szCharSet, a_iPos);
auto iEnd = m_strFormula.find_first_not_of(m_pParser->ValidOprtChars(), a_iPos);

So I guess to use the return static_cast<int>(iEnd) at and

or

to use auto function return type deduction, i.e. auto ParserTokenReader::ExtractToken(const char_type* a_szCharSet, string_type& a_sTok, std::size_t a_iPos) const at

int ParserTokenReader::ExtractToken(const char_type* a_szCharSet, string_type& a_sTok, std::size_t a_iPos) const
and auto ParserTokenReader::ExtractOperatorToken(string_type& a_sTok, std::size_t a_iPos) const at
int ParserTokenReader::ExtractOperatorToken(string_type& a_sTok, std::size_t a_iPos) const
.