aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/tads/tads2/qa_scriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/tads/tads2/qa_scriptor.cpp')
-rw-r--r--engines/glk/tads/tads2/qa_scriptor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/glk/tads/tads2/qa_scriptor.cpp b/engines/glk/tads/tads2/qa_scriptor.cpp
index ec4e770322..bb235d52d2 100644
--- a/engines/glk/tads/tads2/qa_scriptor.cpp
+++ b/engines/glk/tads/tads2/qa_scriptor.cpp
@@ -105,9 +105,7 @@ char *qasgets(char *buf, int bufl) {
/* return the command */
return buf;
}
- }
- else if (c == EOF )
- {
+ } else if ((int)c == EOF) {
/* end of file - close the script and return eof */
qasclose();
return 0;