mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allocators separated into aligned and non aligned operations.
This commit is contained in:
@@ -158,7 +158,7 @@ fn ZString String.copy_zstr(String* str, Allocator* allocator = mem::current_all
|
||||
usize str_len = str.len();
|
||||
if (!str_len)
|
||||
{
|
||||
return (ZString)allocator.calloc(1, 1)!!;
|
||||
return (ZString)allocator.calloc(1)!!;
|
||||
}
|
||||
char* zstr = allocator.alloc(str_len + 1)!!;
|
||||
StringData* data = str.data();
|
||||
|
||||
Reference in New Issue
Block a user