From 1249c335392d7cc2d5492a5bc8718b9a034fbb11 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 22 Jun 2019 09:02:06 -0700 Subject: GLK: ALAN2: Change all EOF to EOD that is case to uint --- engines/glk/alan2/decode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/glk/alan2/decode.cpp') diff --git a/engines/glk/alan2/decode.cpp b/engines/glk/alan2/decode.cpp index 2955c37745..4f89380272 100644 --- a/engines/glk/alan2/decode.cpp +++ b/engines/glk/alan2/decode.cpp @@ -30,14 +30,14 @@ namespace Alan2 { /* Bit output */ static int decodeBuffer; /* Bits to be input */ static int bitsToGo; /* Bits still in buffer */ -static int garbageBits; /* Bits past EOF */ +static int garbageBits; /* Bits past EOD */ static int inputBit() { int bit; if (!bitsToGo) { /* More bits available ? */ decodeBuffer = txtfil->readByte(); /* No, so get more */ - if (decodeBuffer == EOF) { + if (decodeBuffer == EOD) { garbageBits++; if (garbageBits > VALUEBITS - 2) syserr("Error in encoded data file."); -- cgit v1.2.3