- used in some places as a move-along-as-we-go pointer
- used in other places as a pointer to the fixed base of an array
Switch all users to the first style to avoid a crasher.
{
FlattenState state = { 0, };
gsize nnodes;
- gsize i;
nnodes = g_tree_nnodes (tree);
g_return_if_fail (*keys + nnodes == state.keys);
*path = state.prefix;
- for (i = 0; i < nnodes; i++)
- state.keys[i] += state.prefix_len;
+ while (nnodes--)
+ *--state.keys += state.prefix_len;
}
/**