소스 검색

Fix missing allocator

gingerBill 5 년 전
부모
커밋
7a4ec48389
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);