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:
Nathaniel Wesley Filardo
2021-10-18 22:04:43 +01:00
committed by Nathaniel Wesley Filardo
parent 8023a6c906
commit fa4560801a

View File

@@ -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;