Skip to content

Commit a065f44

Browse files
committed
[parser] Fix bug in scanner when rewinding from end of file.
1 parent e649921 commit a065f44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/parser/scanner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ bool Scanner::BufferedSource::SetInputStream(StreamPtr pStream, POV_OFF_T pos)
675675
// Just advance/rewind the current buffer position accordingly.
676676
mBuffer.AdvanceTo(pos - mBase);
677677
POV_PARSER_ASSERT(!mBuffer.IsExhausted());
678+
mExhausted = false;
678679
return true;
679680
}
680681
else

0 commit comments

Comments
 (0)