Commit 429d796c authored by Kenton Varda's avatar Kenton Varda

Fix compile failure with -DCAPNP_DEBUG_TYPES -- no idea how this ever worked?

parent 386f34c7
......@@ -104,7 +104,9 @@ inline KJ_CONSTEXPR() BitsPerElementTableType dataBitsPerElement(ElementSize siz
}
inline constexpr PointersPerElementN<1> pointersPerElement(ElementSize size) {
return size == ElementSize::POINTER ? ONE * POINTERS / ELEMENTS : ZERO * POINTERS / ELEMENTS;
return size == ElementSize::POINTER
? PointersPerElementN<1>(ONE * POINTERS / ELEMENTS)
: PointersPerElementN<1>(ZERO * POINTERS / ELEMENTS);
}
static constexpr BitsPerElementTableType BITS_PER_ELEMENT_INCLUDING_PONITERS_TABLE[8] = {
......
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