From d188cb033d687b905416a90e3c9de6743ca50b04 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Wed, 5 Feb 2025 13:29:32 -0300 Subject: [PATCH] ensure that we are in compiling mode in `;` --- pila.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pila.c b/pila.c index 26b3881..0ad140c 100644 --- a/pila.c +++ b/pila.c @@ -374,6 +374,10 @@ compile_anon_start_nat(RpnState *st) void compile_end_nat(RpnState *st) { + if (!st->compiling) { + signal_error(st, "not in compiling mode"); + return; + } Word *w = malloc(sizeof(*w)); st->compiling = false;