History

Add type_descriptor::is_equal() function. - Replace pointer and use function throughout VM Complete implementation of vm_array_t::copy_from() which supports the slicela instruction.

arr committed 9 years ago

Commit 7838bae1 parent 5ef656f5 files · +30 −12Browse files

Showing the changes to src/vm/execution_table.cpp (1 of 5 files). Show all

Unified · Split

src/vm/execution_table.cpp+1−1
@@ -1403,7 +1403,7 @@ namespace · 1402 unmodified lines
14031403 if (s == nullptr)
14041404 return;
14051405
1406− if (d == nullptr || s->alloc_type != d->alloc_type)
1406+ if (d == nullptr || !s->alloc_type->is_equal(d->alloc_type.get()))
14071407 throw type_violation{};
14081408 }
14091409