Common: Warning fixes for clang-cl

This commit is contained in:
Stenzek authored and refractionpcsx2 committed 2022-12-25 09:27:44 +00:00
1 parent 5c95a6f4fa
commit ca92d4ea3d
17 files changed
+68 -21

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ static bool VMMMarkPagesAsInUse(std::atomic<bool>* begin, std::atomic<bool>* end
for (auto current = begin; current < end; current++)
{
bool expected = false;
if (!current->compare_exchange_strong(expected, true), std::memory_order_relaxed)
if (!current->compare_exchange_strong(expected, true, std::memory_order_relaxed))
{
// This was already allocated! Undo the things we've set until this point
while (--current >= begin)