From 3bad89b205b211f42e24ec1facf16b6a2ecb1627 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 13 Oct 2022 15:07:19 +0200 Subject: stack effects + optimize exefn --- repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repl.c') diff --git a/repl.c b/repl.c index 9aa7bab..dcdb381 100644 --- a/repl.c +++ b/repl.c @@ -51,7 +51,7 @@ main(int argc, char **argv) { if (!strcmp(arg, "-h") || !strcmp(arg, "--help")) { help(); goto Bye; - } else if (arg[1] == 'd') { + } else if (arg[1] == 'd' && arg[2]) { pez_debug(cx, arg + 2); } else { printf("pez: Invalid option '%s'\n", arg); -- cgit v1.2.3