From 3c2c68dfe53454994465dd9f87085163e6e2b6e7 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Mon, 7 Mar 2022 19:26:15 +0100 Subject: [PATCH] reference to undefined variable was referred to as an internal error --- src/runtime/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 3567e2d..09e30fc 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -914,7 +914,7 @@ static _Bool step(Runtime *runtime, Error *error) { if(error->occurred == 0) // There's no such variable. - Error_Report(error, 1, "Reference to undefined variable \"%s\"", ops[0].as_string); + Error_Report(error, 0, "Reference to undefined variable \"%s\"", ops[0].as_string); return 0; }