Commit f0d551f7 authored by Kenton Varda's avatar Kenton Varda

Fix 32-bit bug.

parent b81be25d
......@@ -2496,7 +2496,7 @@ StructReader ListReader::getStructElement(ElementCount index) const {
// This check should pass if there are no bugs in the list pointer validation code.
KJ_DASSERT(structPointerCount == 0 * POINTERS ||
(uintptr_t)structPointers % sizeof(WirePointer) == 0,
(uintptr_t)structPointers % sizeof(void*) == 0,
"Pointer section of struct list element not aligned.");
return StructReader(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment