xo-alloc: nix-build + compiler nits

This commit is contained in:
Roland Conybeare 2026-02-26 12:20:34 +11:00
commit caa03566da
2 changed files with 6 additions and 2 deletions

View file

@ -390,8 +390,10 @@ namespace xo {
/* word size for alignment */
constexpr uint32_t c_bpw = sizeof(std::uintptr_t);
(void)c_bpw;
std::uintptr_t free_u64 = reinterpret_cast<std::uintptr_t>(free_ptr_);
(void)free_u64;
assert(free_u64 % c_bpw == 0ul);

View file

@ -974,11 +974,13 @@ namespace xo {
from_entry.fixup_parent_child_moved(child_to);
#ifndef NDEBUG
{
// verify fixup was effective
IObject * child_from2 = from_entry.child();
assert(child_from2 == child_to);
}
#endif
// P->C', loc(C') in {N1', T'}