Fix runtime error regression in core::copy

This commit is contained in:
kayomn 2023-02-19 16:32:02 +00:00
parent 3a9a6a34bb
commit 298c7bfe94
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ export namespace core {
void copy(slice<u8> const & target, slice<u8 const> const & origin) {
if (target.length < origin.length) core::unreachable();
for (usize i = 0; i < target.length; i += 1) target[i] = origin[i];
for (usize i = 0; i < origin.length; i += 1) target[i] = origin[i];
}
/**