Skip to content

Commit

Permalink
Remove pointer arithmetic, make assingment less complicated and ambig…
Browse files Browse the repository at this point in the history
…uous
  • Loading branch information
Blake-Madden committed Dec 26, 2023
1 parent 6d3302a commit ee12eee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tinyexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,8 @@ void te_parser::next_token(te_parser::state* theState)
else
{
/* Look for an operator or special character. */
const auto tok = theState->m_next++[0];
const auto tok = *theState->m_next;
std::advance(theState->m_next, 1);
if (tok == '+')
{
theState->m_type = te_parser::state::token_type::TOK_INFIX;
Expand Down

0 comments on commit ee12eee

Please sign in to comment.