From f37f779e5a66505407e9b1793d6a34e9c92151ed Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Tue, 24 Jan 2023 14:20:37 +0100 Subject: [PATCH] Fix in utf8to16 conversion. --- lib/std/core/str.c3 | 2 +- src/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/core/str.c3 b/lib/std/core/str.c3 index c12d2ae75..7e99ec541 100644 --- a/lib/std/core/str.c3 +++ b/lib/std/core/str.c3 @@ -306,7 +306,7 @@ fn String utf32to8(Char32[] utf32, Allocator* allocator = mem::current_allocator return data[:len]; } -fn Char16[]! utf8to16(String utf8, Allocator* allocator = mem::current_allocator) +fn Char16[]! utf8to16(String utf8, Allocator* allocator = mem::current_allocator()) { usz len16 = conv::utf16len_for_utf8(utf8); Char16* data = allocator.alloc((len16 + 1) * Char16.sizeof)?; diff --git a/src/version.h b/src/version.h index e1c4d1944..43cf87680 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define COMPILER_VERSION "0.4.19" \ No newline at end of file +#define COMPILER_VERSION "0.4.20" \ No newline at end of file