fix zig build errors

This commit is contained in:
Brendan Hansknecht 2024-07-24 09:21:47 -07:00 committed by Luke Boswell
parent 011c13fb17
commit a8dd6244e9
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
5 changed files with 83 additions and 78 deletions

View file

@ -274,7 +274,7 @@ pub const RocStr = extern struct {
const source_ptr = self.asU8ptr();
const dest_ptr = result.asU8ptrMut();
std.mem.copy(u8, dest_ptr[0..old_length], source_ptr[0..old_length]);
@memcpy(dest_ptr[0..old_length], source_ptr[0..old_length]);
@memset(dest_ptr[old_length..new_length], 0);
self.decref();
@ -290,7 +290,7 @@ pub const RocStr = extern struct {
const source_ptr = self.asU8ptr();
std.mem.copy(u8, dest_ptr[0..old_length], source_ptr[0..old_length]);
@memcpy(dest_ptr[0..old_length], source_ptr[0..old_length]);
@memset(dest_ptr[old_length..new_length], 0);
self.decref();