From 8d87ba3e05bb09c6e1383f289c533dfafa5ec4d0 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 15 Oct 2020 00:10:19 +0300 Subject: [PATCH] Fix *nix compilation problem. --- stew/utf8.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stew/utf8.nim b/stew/utf8.nim index afac4d5..312f4d6 100644 --- a/stew/utf8.nim +++ b/stew/utf8.nim @@ -414,8 +414,8 @@ when defined(posix): ps: ptr Mbstate): csize_t {. importc, header: "".} - proc mbstowcs*[A: Bytes, B: Wides](t: typedesc[B], - input: openarray[A]): UResult[seq[B]] = + proc mbstowcs*[A: Bytes, B: Wides32](t: typedesc[B], + input: openarray[A]): UResult[seq[B]] = ## Converts multibyte encoded string to OS specific wide char string. ## ## Note, that `input` should be `0` terminated.