From 797f660ef0b09d315c5b13bc7f9c0524af20ab2e Mon Sep 17 00:00:00 2001 From: olsner Date: Wed, 9 Jun 2004 22:47:02 +0000 Subject: [PATCH] take two.. the typedefs should match now - hopefully on both VC++ and GCC This was SVN commit r466. --- source/scripting/ScriptingHost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/scripting/ScriptingHost.cpp b/source/scripting/ScriptingHost.cpp index a82e8db295..6526ac65f9 100755 --- a/source/scripting/ScriptingHost.cpp +++ b/source/scripting/ScriptingHost.cpp @@ -225,9 +225,9 @@ void ScriptingHost::SetObjectProperty(JSObject * object, const std::string & pro int ScriptingHost::ValueToInt(const jsval value) { - JSInt32 i = 0; + int32 i = 0; - JSBool ok = JS_ValueToInt32(m_Context, value, (JSInt32*)&i); + JSBool ok = JS_ValueToInt32(m_Context, value, &i); if (ok == JS_FALSE) {