Showing the changes to src/vm/list.cpp (1 of 5 files). Show all
Unified · Split
| @@ -90,7 +90,7 @@ void vm_list_t::set_tail(vm_list_t *new_tail) · 89 unmodified lines | ||
| 90 | 90 | { |
| 91 | 91 | if (new_tail != nullptr) |
| 92 | 92 | { |
| 93 | − if (new_tail->get_element_type() != _element_type) | |
| 93 | + if (!new_tail->get_element_type()->is_equal(_element_type.get())) | |
| 94 | 94 | throw type_violation{}; |
| 95 | 95 | |
| 96 | 96 | new_tail->add_ref(); |