Commit bc7b57a7 authored by Kenton Varda's avatar Kenton Varda

Fix 32-bit bug.

parent 4cfeb8eb
......@@ -2506,7 +2506,7 @@ StructReader ListReader::getStructElement(ElementCount index) const {
}
static const WirePointer* checkAlignment(const void* ptr) {
KJ_DASSERT((uintptr_t)ptr % sizeof(WirePointer) == 0,
KJ_DASSERT((uintptr_t)ptr % sizeof(void*) == 0,
"Pointer section of struct list element not aligned.");
return reinterpret_cast<const WirePointer*>(ptr);
}
......
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