context: Fix apfl_is_truthy not popping the input off the stack

This commit is contained in:
Laria 2022-10-31 15:51:28 +01:00
parent 18ae382414
commit 742bd66b46

View file

@ -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;