This was ignoring the address space, and would assert on address spaces with a different size from the default.