mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
allocateStr uses @sizeOf(usize) instead of 8
This commit is contained in:
parent
8a4e131abd
commit
83529079cf
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ fn allocateStr(comptime T: type, inPlace: InPlace, numberOfChars: u64) RocStr {
|
|||
}
|
||||
|
||||
var firstElement = @ptrCast([*]align(@alignOf(T)) u8, newBytes);
|
||||
firstElement += 8;
|
||||
firstElement += @sizeOf(usize);
|
||||
|
||||
return RocStr{
|
||||
.bytesPtr = firstElement,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue