GCC/linux compat (required extern qualifier, int/JSInt32 conversion)

This was SVN commit r447.
This commit is contained in:
olsner
2004-06-09 14:02:40 +00:00
parent b520430cb5
commit 609d519d3d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -225,9 +225,9 @@ void ScriptingHost::SetObjectProperty(JSObject * object, const std::string & pro
int ScriptingHost::ValueToInt(const jsval value)
{
int i = 0;
JSInt32 i = 0;
JSBool ok = JS_ValueToInt32(m_Context, value, (int32*)&i);
JSBool ok = JS_ValueToInt32(m_Context, value, (JSInt32*)&i);
if (ok == JS_FALSE)
{