From 742bd66b469cb14088189dbeeb2e622b2925439c Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 31 Oct 2022 15:51:28 +0100 Subject: [PATCH] context: Fix apfl_is_truthy not popping the input off the stack --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index 3bdbb04..f3e30ea 100644 --- a/src/context.c +++ b/src/context.c @@ -1140,7 +1140,7 @@ apfl_tostring(apfl_ctx ctx, apfl_stackidx index) bool apfl_is_truthy(apfl_ctx ctx, apfl_stackidx index) { - struct apfl_value value = apfl_stack_must_get(ctx, index); + struct apfl_value value = apfl_stack_must_pop(ctx, index); switch (value.type) { case VALUE_NIL: return false;