Skip to content

Commit

Permalink
[libromdata/tests] FilterCacheKeyTest, filterCacheKey_EINVAL_wchar_t:…
Browse files Browse the repository at this point in the history
… Cast to `wchar_t*`, not `const wchar_t*`.

src\libcachecommon\tests\FilterCacheKeyTest.cpp(264): error C2665: 'LibCacheCommon::filterCacheKey': none of the 4 overloads could convert all the argument types
  • Loading branch information
GerbilSoft committed Jan 19, 2025
1 parent f1672fc commit 3d92146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcachecommon/tests/FilterCacheKeyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ TEST_F(FilterCacheKeyTest, filterCacheKey_EINVAL_wchar_t)
wchar_t cache_key[2] = {L'\0', L'\0'};

// Test NULL pointer.
EXPECT_EQ(-EINVAL, LibCacheCommon::filterCacheKey(static_cast<const wchar_t*>(nullptr)));
EXPECT_EQ(-EINVAL, LibCacheCommon::filterCacheKey(static_cast<wchar_t*>(nullptr)));

// Test an empty string.
EXPECT_EQ(-EINVAL, LibCacheCommon::filterCacheKey(cache_key));
Expand Down

0 comments on commit 3d92146

Please sign in to comment.