aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-06 19:28:11 -0500
committerJoel Martin <github@martintribe.org>2014-04-06 19:28:11 -0500
commitb2ff794a97a80f8acac1914c679222fda5a3355c (patch)
tree7c3ef6e3a66b3f07f71c7778681e62583399afb9
parentafde2df05daa178cf4d4bddccc0f27093416a9c2 (diff)
downloadmal-b2ff794a97a80f8acac1914c679222fda5a3355c.tar.gz
mal-b2ff794a97a80f8acac1914c679222fda5a3355c.zip
C: fix step1 EOF handling.
-rw-r--r--c/step1_read_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/step1_read_print.c b/c/step1_read_print.c
index 3612373..77c75b9 100644
--- a/c/step1_read_print.c
+++ b/c/step1_read_print.c
@@ -66,7 +66,7 @@ int main()
// REPL loop
for(;;) {
exp = RE(NULL, prompt, NULL);
- if (mal_error && strcmp("EOF", mal_error) == 0) {
+ if (mal_error && strcmp("EOF", mal_error->val.string) == 0) {
return 0;
}
output = PRINT(exp);