fix warning: add typecast to JSVAL_NULL
This was SVN commit r1352.
This commit is contained in:
parent
e04df2616b
commit
df2e7f1b08
@ -34,7 +34,7 @@ template<typename T> T* ToNative( JSContext* cx, JSObject* obj )
|
||||
template<typename T> JSObject* ToScript( T* Native )
|
||||
{
|
||||
if( !Native )
|
||||
return( JSVAL_NULL );
|
||||
return( (JSObject*)JSVAL_NULL );
|
||||
return( Native->GetScript() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user