diff --git a/source/tools/atlas/AtlasScript/ScriptInterface.cpp b/source/tools/atlas/AtlasScript/ScriptInterface.cpp index 391a7b9672..c63ca282ba 100644 --- a/source/tools/atlas/AtlasScript/ScriptInterface.cpp +++ b/source/tools/atlas/AtlasScript/ScriptInterface.cpp @@ -182,7 +182,7 @@ namespace if (! ret) FAIL("Argument must be convertible to a string"); jschar* ch = JS_GetStringChars(ret); - out = wxString((const char*)ch, wxMBConvUTF16(), JS_GetStringLength(ret)*2); + out = wxString((const char*)ch, wxMBConvUTF16(), (size_t)(JS_GetStringLength(ret)*2)); return true; } };