Browse Source

Fix missing allocator

gingerBill 5 years ago
parent
commit
7a4ec48389
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/unicode/utf8/utf8.odin

+ 1 - 1
core/unicode/utf8/utf8.odin

@@ -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);