diff options
Diffstat (limited to 'tests/stdlib/twchartoutf8.nim')
-rw-r--r-- | tests/stdlib/twchartoutf8.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/stdlib/twchartoutf8.nim b/tests/stdlib/twchartoutf8.nim index a6602e3e3..3182ee46a 100644 --- a/tests/stdlib/twchartoutf8.nim +++ b/tests/stdlib/twchartoutf8.nim @@ -66,8 +66,7 @@ else: #RFC-2781 "UTF-16, an encoding of ISO 10646" - var wc: WideCString - unsafeNew(wc, 1024 * 4 + 2) + var wc: WideCString = newWideCString(1024 * 2) #U+0000 to U+D7FF #skip the U+0000 |