From fa4560801adf6bf689279dc7fb609b429cc3d206 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 18 Oct 2021 22:04:43 +0100 Subject: [PATCH] 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. --- src/mem/freelist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/freelist.h b/src/mem/freelist.h index 7b6e3ca..4640534 100644 --- a/src/mem/freelist.h +++ b/src/mem/freelist.h @@ -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;