Fix checking type of wrong value

We already checked dst_val, we need to check src_val too!
This commit is contained in:
Laria 2022-04-24 16:45:25 +02:00
parent ad141a86fb
commit a773e929bf

View file

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