1
0
forked from mirrors/0ad

Fix VS2013 build errors, warnings

This was SVN commit r14073.
This commit is contained in:
Ykkrosh
2013-11-03 12:46:07 +00:00
parent 37f5aa5351
commit 72e11a2dea
4 changed files with 11 additions and 9 deletions
@@ -140,9 +140,9 @@ public:
void test_nonfinite()
{
roundtrip<float>(INFINITY, "Infinity");
roundtrip<float>(-INFINITY, "-Infinity");
convert_to<float>(NAN, "NaN"); // can't use roundtrip since nan != nan
roundtrip<float>(std::numeric_limits<float>::infinity(), "Infinity");
roundtrip<float>(-std::numeric_limits<float>::infinity(), "-Infinity");
convert_to<float>(std::numeric_limits<float>::quiet_NaN(), "NaN"); // can't use roundtrip since nan != nan
ScriptInterface script("Test", "Test", ScriptInterface::CreateRuntime());
JSContext* cx = script.GetContext();