1
0
forked from 0ad/0ad

fix warning: add typecast to JSVAL_NULL

This was SVN commit r1352.
This commit is contained in:
janwas 2004-11-18 20:56:13 +00:00
parent e04df2616b
commit df2e7f1b08

View File

@ -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() );
}