From c2138b3ba1d49ff93bdebe9b76aca7c356b46689 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 29 May 2023 15:26:26 -0400 Subject: feat: add jit-compiled optype ; add more new commands --- stack.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stack.c') diff --git a/stack.c b/stack.c index 617e621..e1f0281 100644 --- a/stack.c +++ b/stack.c @@ -61,6 +61,9 @@ void stack_roll(stack *s) { s->start[i] = s->start[i+1]; } s->start[i] = newtop; + } else { + // no item found + stack_push(s, 0); } } -- cgit v1.2.3