context: Fix apfl_is_truthy not popping the input off the stack
This commit is contained in:
parent
18ae382414
commit
742bd66b46
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue