diff options
Diffstat (limited to 'app/wlib/mswlib/utf8conv.c')
-rw-r--r-- | app/wlib/mswlib/utf8conv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/wlib/mswlib/utf8conv.c b/app/wlib/mswlib/utf8conv.c index 62ada76..5a39b34 100644 --- a/app/wlib/mswlib/utf8conv.c +++ b/app/wlib/mswlib/utf8conv.c @@ -43,7 +43,7 @@ bool wSystemToUTF8(const char *inString, char *outString, unsigned outStringLength) { - unsigned int cnt = 2 * (strlen(inString) + 1); + unsigned int cnt = 2 * (unsigned int)(strlen(inString) + 1); char *tempBuffer = malloc(cnt); // convert to wide character (UTF16) @@ -81,7 +81,7 @@ wSystemToUTF8(const char *inString, char *outString, unsigned outStringLength) bool wUTF8ToSystem(const char *inString, char *outString, unsigned outStringLength) { - unsigned int cnt = 2 * (strlen(inString) + 1); + unsigned int cnt = 2 * (int)(strlen(inString) + 1); char *tempBuffer = malloc(cnt); // convert to wide character (UTF16) |