You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect string assignment, causing 1+2+3 to be parsed as "1", "+", and "2+3".
Though the RPN part fix this and calculates the correct output.
In
bool ParserTokenReader::IsValTok(token_type &a_Tok)
the line
strTok.assign(m_strFormula.c_str(), iStart, m_iPos);
should be
strTok.assign(m_strFormula.c_str(), iStart, m_iPos-iStart);
.
The string assign function uses count, not a second position:
_Myt& assign(const _Myt& _Right,
size_type _Roff, size_type _Count)
Original issue reported on code.google.com by juno.kam...@gmail.com on 25 Nov 2013 at 9:37
The text was updated successfully, but these errors were encountered:
And some minor typos.
I use Visual Studio Spell Checker, so the red lines helps to detect them ;-)
explicitely -> explicitly
seperated -> separated
retriev -> retrieve
amd -> and
Original comment by juno.kam...@gmail.com on 25 Nov 2013 at 10:27
Original issue reported on code.google.com by
juno.kam...@gmail.com
on 25 Nov 2013 at 9:37The text was updated successfully, but these errors were encountered: