mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix missing allocator
This commit is contained in:
@@ -147,7 +147,7 @@ runes_to_string :: proc(runes: []rune, allocator := context.allocator) -> string
|
|||||||
byte_count += w;
|
byte_count += w;
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes := make([]byte, byte_count);
|
bytes := make([]byte, byte_count, allocator);
|
||||||
offset := 0;
|
offset := 0;
|
||||||
for r in runes {
|
for r in runes {
|
||||||
b, w := encode_rune(r);
|
b, w := encode_rune(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user