diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index e425b64a..b229c766 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -370,13 +370,13 @@ TEST_CASE( "toString on const wchar_t pointer returns the string contents", "[to } TEST_CASE( "toString on wchar_t const pointer returns the string contents", "[toString]" ) { - wchar_t * const s = L"wide load"; + wchar_t * const s = const_cast( L"wide load" ); std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); } TEST_CASE( "toString on wchar_t returns the string contents", "[toString]" ) { - wchar_t * s = L"wide load"; + wchar_t * s = const_cast( L"wide load" ); std::string result = Catch::toString( s ); CHECK( result == "\"wide load\"" ); -} \ No newline at end of file +}