mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-13 15:34:37 +00:00
Restored Windows compatibility (and hopefully didn't break OS X compatibility).
Fixed copy-constructor-generation warnings in VS2003. This was SVN commit r4232.
This commit is contained in:
@@ -151,7 +151,7 @@ template<> jsval ToJSVal<double>( double& Native )
|
||||
template<> bool ToPrimitive<double>( JSContext* cx, jsval v, double& Storage )
|
||||
{
|
||||
JSBool ok = JS_ValueToNumber(cx, v, &Storage);
|
||||
if (ok == JS_FALSE || !std::isfinite( Storage ) )
|
||||
if (ok == JS_FALSE || !isfinite( Storage ) )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user