forked from 0ad/0ad
take two.. the typedefs should match now - hopefully on both VC++ and GCC
This was SVN commit r466.
This commit is contained in:
parent
a30a82469e
commit
797f660ef0
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user