fix ternary operators in eval; fix incorrect oplist concatentation path

This commit is contained in:
Ryan Fleury
2024-08-07 13:10:41 -07:00
parent 607442b92a
commit 6a886e096e
2 changed files with 10 additions and 5 deletions
+5 -5
View File
@@ -149,12 +149,12 @@ e_oplist_concat_in_place(E_OpList *dst, E_OpList *to_push)
{
if(to_push->first && dst->first)
{
to_push->last->next = dst->first;
to_push->last = dst->last;
to_push->op_count += to_push->op_count;
to_push->encoded_size += to_push->encoded_size;
dst->last->next = to_push->first;
dst->last = to_push->last;
dst->op_count += to_push->op_count;
dst->encoded_size += to_push->encoded_size;
}
else if(dst->first)
else if(!dst->first)
{
MemoryCopyStruct(dst, to_push);
}