From 7a4ec48389a726d57ef8879f0c97f52b4e6b9c1c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 26 Jan 2020 21:10:56 +0000 Subject: [PATCH] Fix missing allocator --- core/unicode/utf8/utf8.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/unicode/utf8/utf8.odin b/core/unicode/utf8/utf8.odin index 5b4a6c7a0..a547bd2e7 100644 --- a/core/unicode/utf8/utf8.odin +++ b/core/unicode/utf8/utf8.odin @@ -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);