mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 09:20:28 +03:00
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:
parent
182bb97479
commit
192ee4594c
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/192ee4594c Pull-request: https://github.com/SerenityOS/serenity/pull/19809 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/timschumi
@ -356,7 +356,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
T volatile** ptr() noexcept
|
||||
T* volatile* ptr() noexcept
|
||||
{
|
||||
return &m_value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user