diff options
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/antlr_line_buffered_input.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser/antlr_line_buffered_input.cpp b/src/parser/antlr_line_buffered_input.cpp index 8a4bcdebb..e9e861e17 100644 --- a/src/parser/antlr_line_buffered_input.cpp +++ b/src/parser/antlr_line_buffered_input.cpp @@ -294,10 +294,8 @@ static void bufferedInputSeek(pANTLR3_INT_STREAM is, ANTLR3_MARKER seekPoint) { assert(!line_buffered_input->line_buffer->isPtrBefore( (uint8_t*)seekPoint, input->line, input->charPositionInLine)); - ssize_t count = (ssize_t)(seekPoint - (ANTLR3_MARKER)(input->nextChar)); - while (count > 0) { + while ((ANTLR3_MARKER)(input->nextChar) != seekPoint) { is->consume(is); - count--; } } |