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:
Ykkrosh
2006-08-21 21:27:12 +00:00
parent 98697b4676
commit 6a7ee226f0
4 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -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;
}