diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp index a7e49e8c6..eb23cf3f7 100644 --- a/tests/wchar_test.cpp +++ b/tests/wchar_test.cpp @@ -782,20 +782,20 @@ void TestSingleWcsToFloat(WcsToFloatFn fn, const wchar_t* str, template void TestWcsToFloat(WcsToFloatFn fn) { - TestSingleWcsToFloat(fn, L"123", static_cast(123.0), 3); - TestSingleWcsToFloat(fn, L"123#", static_cast(123.0), 3); - TestSingleWcsToFloat(fn, L" 123 45", static_cast(123.0), 6); - TestSingleWcsToFloat(fn, L"9.0", static_cast(9.0), 3); - TestSingleWcsToFloat(fn, L"-9.0", static_cast(-9.0), 4); - TestSingleWcsToFloat(fn, L" \t\v\f\r\n9.0", static_cast(9.0), 9); + TestSingleWcsToFloat(fn, L"123", static_cast(123.0L), 3); + TestSingleWcsToFloat(fn, L"123#", static_cast(123.0L), 3); + TestSingleWcsToFloat(fn, L" 123 45", static_cast(123.0L), 6); + TestSingleWcsToFloat(fn, L"9.0", static_cast(9.0L), 3); + TestSingleWcsToFloat(fn, L"-9.0", static_cast(-9.0L), 4); + TestSingleWcsToFloat(fn, L" \t\v\f\r\n9.0", static_cast(9.0L), 9); } template void TestWcsToFloatHexFloats(WcsToFloatFn fn) { - TestSingleWcsToFloat(fn, L"0.9e1", static_cast(9.0), 5); - TestSingleWcsToFloat(fn, L"0x1.2p3", static_cast(9.0), 7); - TestSingleWcsToFloat(fn, L"+1e+100", static_cast(1e100), 7); - TestSingleWcsToFloat(fn, L"0x10000.80", static_cast(65536.50), 10); + TestSingleWcsToFloat(fn, L"0.9e1", static_cast(9.0L), 5); + TestSingleWcsToFloat(fn, L"0x1.2p3", static_cast(9.0L), 7); + TestSingleWcsToFloat(fn, L"+1e+100", static_cast(1e100L), 7); + TestSingleWcsToFloat(fn, L"0x10000.80", static_cast(65536.50L), 10); } template