Explorar o código

Fix missing allocator

gingerBill %!s(int64=5) %!d(string=hai) anos
pai
achega
7a4ec48389
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}
 
-	bytes := make([]byte, byte_count);
+	bytes := make([]byte, byte_count, allocator);
 	offset := 0;
 	for r in runes {
 		b, w := encode_rune(r);