take two.. the typedefs should match now - hopefully on both VC++ and GCC

This was SVN commit r466.
This commit is contained in:
Simon Brenner 2004-06-09 22:47:02 +00:00
parent a30a82469e
commit 797f660ef0

View File

@ -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)
{