Commit e87fd280 authored by Quentin Khan's avatar Quentin Khan

FAdaptiveSequential: use node_t::child_count for array size in M2M

parent 5ce1257f
......@@ -140,7 +140,7 @@ public:
if(! node.is_leaf()) {
// Fill array of children data
typename node_t::data_t* child_data[8] = {};
typename node_t::data_t* child_data[node_t::child_count] = {};
for(node_t* child : node.getChildren()) {
child_data[child->getIndex() & (node_t::child_count-1)] = child->getData();
}
......
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