Fix missing allocator
This commit is contained in:
1 parent
a101e0d7ba
commit
7a4ec48389
1 file changed
+1
-1
@@ -147,7 +147,7 @@ runes_to_string :: proc(runes: []rune, allocator := context.allocator) -> string
|
||||
byte_count += w;
|
||||
}
|
||||
|
||||
bytes := make([]byte, byte_count);
|
||||
bytes := make([]byte, byte_count, allocator);
|
||||
offset := 0;
|
||||
for r in runes {
|
||||
b, w := encode_rune(r);
|
||||
|
||||
Reference in new issue
Block a user