aboutsummaryrefslogtreecommitdiff
path: root/core/unicode
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-01-26 21:10:56 +0000
committergingerBill <bill@gingerbill.org>2020-01-26 21:10:56 +0000
commit7a4ec48389a726d57ef8879f0c97f52b4e6b9c1c (patch)
tree3961e80d67501989972aab5f2c26f01e3d03c113 /core/unicode
parenta101e0d7bac7897c89e1ab8eaed518b50dd2343c (diff)
Fix missing allocator
Diffstat (limited to 'core/unicode')
-rw-r--r--core/unicode/utf8/utf8.odin2
1 files changed, 1 insertions, 1 deletions
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);