From b2ff794a97a80f8acac1914c679222fda5a3355c Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sun, 6 Apr 2014 19:28:11 -0500 Subject: C: fix step1 EOF handling. --- c/step1_read_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3