mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +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;
|
||||
}
|
||||
|
||||
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