[Scummvm-git-logs] scummvm master -> 7caf897ee2e94a0c90601f55e476a1849b8c353b
dreammaster
paulfgilbert at gmail.com
Sun Oct 6 20:26:04 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7caf897ee2 GLK: Improve abysmal performance of stream read check
Commit: 7caf897ee2e94a0c90601f55e476a1849b8c353b
https://github.com/scummvm/scummvm/commit/7caf897ee2e94a0c90601f55e476a1849b8c353b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-10-06T11:24:23-07:00
Commit Message:
GLK: Improve abysmal performance of stream read check
Changed paths:
engines/glk/streams.cpp
diff --git a/engines/glk/streams.cpp b/engines/glk/streams.cpp
index d6d62dd..5a739b3 100644
--- a/engines/glk/streams.cpp
+++ b/engines/glk/streams.cpp
@@ -989,7 +989,7 @@ int IOStream::getChar() {
ensureOp(filemode_Read);
int res;
if (!_unicode) {
- res = (_inStream->pos() >= _inStream->size()) ? -1 : _inStream->readByte();
+ res = _inStream->eos() ? -1 : _inStream->readByte();
} else if (_textFile) {
res = getCharUtf8();
} else {
More information about the Scummvm-git-logs
mailing list