From fcbea5f617edb6e3dfa68eb31efa402b4916c032 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 20 Sep 2021 21:47:41 -0700 Subject: Chapter 21.1 - 21.3 --- clox/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clox/src/main.c') diff --git a/clox/src/main.c b/clox/src/main.c index c95c7ba..f985584 100644 --- a/clox/src/main.c +++ b/clox/src/main.c @@ -66,7 +66,7 @@ int main(int argc, const char *argv[]) { if (argc == 1) { repl(); - } else if (argc = 2) { + } else if (argc == 2) { runFile(argv[1]); } else { fprintf(stderr, "Usage: clox [path]\n"); -- cgit v1.2.3-54-g00ecf