freelist: check_prev expects an address_t
So make signed_prev return one. This distinction only matters on CHERI, of course; everywhere else address_t *is* a uintptr_t.
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
8023a6c906
commit
fa4560801a
@@ -44,7 +44,7 @@ namespace snmalloc
|
||||
/**
|
||||
* This function is used to sign back pointers in the free list.
|
||||
*/
|
||||
inline static uintptr_t
|
||||
inline static address_t
|
||||
signed_prev(address_t curr, address_t next, const FreeListKey& key)
|
||||
{
|
||||
auto c = curr;
|
||||
|
||||
Reference in New Issue
Block a user