[Bf-committers] Faster listbase lookups
Alexander Ewering
blender at instinctive.de
Sat Oct 21 15:52:00 CEST 2006
On Sat, 21 Oct 2006, Alexander Ewering wrote:
> for (forward = list->first, backward = list->last, i = 0;
> forward != backward;
> forward = forward->next, backward = backward->prev, i++)
I think that will miss half of the list items, it should be
forward && backward
instead of
forward != backward
I think... argh, long time no C coding :)
| alexander ewering instinctive mediaworks
| ae[@]instinctive[.]de http://www[.]instinctive[.]de
More information about the Bf-committers
mailing list