enum maple_type mt;
struct maple_node *node;
- if (mte_is_leaf(mas->node))
+ mt = mte_node_type(mas->node);
+ if (ma_is_leaf(mt))
return mas_leaf_max_gap(mas);
- mt = mte_node_type(mas->node);
- node = mte_to_node(mas->node);
- gaps = ma_gaps(node, mt);
+ node = mas_mn(mas);
offset = ma_meta_gap(node, mt);
if (offset == 15)
return 0;
+ gaps = ma_gaps(node, mt);
return gaps[offset];
}
static inline void mas_update_gap(struct ma_state *mas)
{
unsigned char pslot;
- unsigned long p_gap, max_gap = 0;
+ unsigned long p_gap;
+ unsigned long max_gap;
if (!mt_is_alloc(mas->tree))
return;