uintptr_max instead of -1/~0
This commit is contained in:
committed by
Matthew Parkinson
parent
c471e1a271
commit
f1835813bd
@@ -19,7 +19,7 @@ namespace snmalloc
|
||||
}
|
||||
};
|
||||
|
||||
using SlabList = DLList<SlabLink, ~(uintptr_t)0>;
|
||||
using SlabList = DLList<SlabLink, UINTPTR_MAX>;
|
||||
|
||||
static_assert(
|
||||
sizeof(SlabLink) <= MIN_ALLOC_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user