We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e8bce commit b5c0c83Copy full SHA for b5c0c83
source/parser/scanner.cpp
@@ -701,14 +701,11 @@ UCS2String Scanner::BufferedSource::GetInputStreamName() const
701
bool Scanner::BufferedSource::SeekAndRefill(POV_OFF_T pos)
702
{
703
mBuffer.Clear();
704
- if (mBase != pos)
705
- {
706
- bool seekOk = mpStream->seekg(pos);
707
- mBase = mpStream->tellg();
708
- POV_PARSER_ASSERT((mBase == pos) || !seekOk);
709
- if (!seekOk)
710
- return false; // TODO - Maybe report issue via an exception.
711
- }
+ bool seekOk = mpStream->seekg(pos);
+ mBase = mpStream->tellg();
+ POV_PARSER_ASSERT((mBase == pos) || !seekOk);
+ if (!seekOk)
+ return false; // TODO - Maybe report issue via an exception.
712
mExhausted = false;
713
(void)RefillBuffer();
714
return true;
0 commit comments