Merge pull request #73 from encounter/patch-1

Fix build error in MemoryReader.cpp
This commit is contained in:
Phillip Stephens 2019-12-10 20:47:19 -08:00 committed by GitHub
commit d0eef5eab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void MemoryReader::seek(atInt64 position, SeekOrigin origin) {
if (((atInt64(m_position) + position) < 0 || (m_position + atUint64(position)) > m_length)) {
if (m_globalErr)
atFatal(fmt("Position {:08X} outside stream bounds "), position);
m_position = (position < 0 ? 0 ? m_length;
m_position = (position < 0 ? 0 : m_length);
setError();
return;
}