kernel/util/atomic: Permit atomic_pointer_get to accept const* pointers.
This commit is contained in:
@@ -53,7 +53,7 @@ atomic_pointer_set(PointerType** _pointer, const PointerType* set)
|
|||||||
|
|
||||||
|
|
||||||
template<typename PointerType> PointerType*
|
template<typename PointerType> PointerType*
|
||||||
atomic_pointer_get(PointerType** _pointer)
|
atomic_pointer_get(PointerType* const* _pointer)
|
||||||
{
|
{
|
||||||
ASSERT((addr_t(_pointer) & (sizeof(PointerType*) - 1)) == 0);
|
ASSERT((addr_t(_pointer) & (sizeof(PointerType*) - 1)) == 0);
|
||||||
#if LONG_MAX == INT_MAX
|
#if LONG_MAX == INT_MAX
|
||||||
|
|||||||
Reference in New Issue
Block a user