1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-05 10:03:27 +00:00

Fixed compiler warning

This commit is contained in:
Bryan Roe
2019-08-14 14:52:39 -07:00
parent 6f8e813024
commit e3ec71f5e8

View File

@@ -465,7 +465,7 @@ duk_ret_t ILibDuktape_GenericMarshal_CreateVariable(duk_context *ctx)
{
#ifdef WIN32
wchar_t *wbuffer = (wchar_t*)ILibMemory_AllocateA(((int)strLen * 2) + 2);
if (MultiByteToWideChar(CP_UTF8, 0, (LPCCH)str, size, wbuffer, strLen + 1) == 0)
if (MultiByteToWideChar(CP_UTF8, 0, (LPCCH)str, size, wbuffer, (int)strLen + 1) == 0)
{
return(ILibDuktape_Error(ctx, "UTF8 Conversion Error"));
}