7 ms·
Your get_tail_child always returns NULL for (tail_ch = head_ch; tail_ch; tail_ch = tail_ch->next); return tail_ch;
by basugasubaku 14y ago
Your get_tail_child always returns NULL
for (tail_ch = head_ch; tail_ch; tail_ch = tail_ch->next);
return tail_ch;
- jws 14y agoWell spotted! Going to want to add a test case with more than one child at a time. I think as is it loses all but the most recent child.
- uggedal 14y agoThat was embarrasing. Should be fixed now: https://github.com/uggedal/going/commit/15a83397076ffbebe58550c9fb210ee5f0be82a6 https://github.com/uggedal/going/commit/15a83397076ffbebe585...