Skip to content
Permalink
Browse files

GLK: Improve abysmal performance of stream read check

  • Loading branch information...
dreammaster committed Oct 6, 2019
1 parent d831218 commit 7caf897ee2e94a0c90601f55e476a1849b8c353b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 {

0 comments on commit 7caf897

Please sign in to comment.
You can’t perform that action at this time.