From 70e2fcf26fc77234577bab494e9e74511fe73309 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Thu, 25 Apr 2019 15:00:35 +0100 Subject: [PATCH] Fix 32bit build --- src/mem/alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/alloc.h b/src/mem/alloc.h index 69a704b..8365745 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -987,7 +987,7 @@ namespace snmalloc SlabLink* link = sc->get_head(); Slab* slab; - if ((uintptr_t)link != ~0ULL) + if (~(uintptr_t)link != 0) { slab = link->get_slab(); }