mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 06:45:40 +00:00
GCC/linux compat (required extern qualifier, int/JSInt32 conversion)
This was SVN commit r447.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user