Skip to content

Commit

Permalink
Fix invalid charPositionInLine reported for the 1s line tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ibre5041 committed Jun 26, 2013
1 parent 460fa1e commit 44b950a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Cpp/include/antlr3input.inl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ ANTLR_INLINE void InputStream<ImplTraits>::reset()
{
m_nextChar = m_data; /* Input at first character */
m_line = 1; /* starts at line 1 */
m_charPositionInLine = -1;
m_charPositionInLine = 0;
m_currentLine = m_data;
m_markDepth = 0; /* Reset markers */

Expand Down

0 comments on commit 44b950a

Please sign in to comment.