mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00: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: 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
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
T volatile** ptr() noexcept
|
T* volatile* ptr() noexcept
|
||||||
{
|
{
|
||||||
return &m_value;
|
return &m_value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue