mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
fix zig build errors
This commit is contained in:
parent
011c13fb17
commit
a8dd6244e9
5 changed files with 83 additions and 78 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue