diff options
author | Cameron Cawley | 2019-04-28 14:34:44 +0100 |
---|---|---|
committer | Paul Gilbert | 2019-04-29 16:25:54 +1000 |
commit | 17f0937f000a162e43b99f141d7040660a8451c8 (patch) | |
tree | bf1034434a062d5fc2da615ca45c928af6ee6c0f /engines/glk/alan2/rules.cpp | |
parent | c05179ee99d099088cb55e93ecdf0bff5ed2ed14 (diff) | |
download | scummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.tar.gz scummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.tar.bz2 scummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.zip |
GLK: Fix warnings
Diffstat (limited to 'engines/glk/alan2/rules.cpp')
-rw-r--r-- | engines/glk/alan2/rules.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/glk/alan2/rules.cpp b/engines/glk/alan2/rules.cpp index 1d20429ddd..973bd2389c 100644 --- a/engines/glk/alan2/rules.cpp +++ b/engines/glk/alan2/rules.cpp @@ -59,14 +59,15 @@ void Rules::parseRules() { change = true; _ruls[i - 1].run = true; - if (trcflg) - if (!stpflg) + if (trcflg) { + if (!stpflg) { debug(", Executing:>\n"); - else { + } else { debug("\nRULE %d (at ", i); //debugsay(cur.loc); // TODO debug("), Executing:>\n"); } + } _interpreter->interpret(_ruls[i - 1].stms); @@ -80,7 +81,7 @@ void Rules::parseRules() { bool Rules::endOfTable(RulElem *addr) { Aword *x = (Aword *)addr; - return *x == EOF; + return *x == (Aword)EOF; } } // End of namespace Alan2 |