From 5294821694c9284bf8f18edb05163ee5a034bef3 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 3 Aug 2009 09:50:23 +0000 Subject: [PATCH] Attempt to fix type ambiguity (http://www.wildfiregames.com/forum/index.php?showtopic=12546) This was SVN commit r7068. --- source/tools/atlas/AtlasScript/ScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } };