Fix checking type of wrong value
We already checked dst_val, we need to check src_val too!
This commit is contained in:
parent
ad141a86fb
commit
a773e929bf
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ apfl_list_append_list(apfl_ctx ctx, apfl_stackidx dst_index, apfl_stackidx src_i
|
|||
return APFL_RESULT_ERR;
|
||||
}
|
||||
|
||||
if (dst_val->type != VALUE_LIST) {
|
||||
if (src_val.type != VALUE_LIST) {
|
||||
assert(apfl_stack_drop(ctx, src_index));
|
||||
return APFL_RESULT_ERR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue