AK: Fix volatile qualifier in Atomic<T*>::ptr()

It's the pointer that should be volatile, not the pointed-to object.
This commit is contained in:
Daniel Bertalan 2023-07-04 14:44:18 +02:00 committed by Jelle Raaijmakers
parent 182bb97479
commit 192ee4594c
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00

View File

@ -356,7 +356,7 @@ public:
{
}
T volatile** ptr() noexcept
T* volatile* ptr() noexcept
{
return &m_value;
}