--- In [email protected], Ravi Mishra <ravics...@...> wrote:
>
>   while(cplane->cell[cell].deactivation.first == NULL &&
>
>         cell = (cell + 1) % cplane->cellAmount;

What is the size of array cplane->cell[], and the value of cplane->cellAmount 
(dump because accessing beyond end of array)?

BTW if this is real-time embedded code, it might be better to avoid the 
division (%) and use something like:

    if (++cell == cplane->cellAmount)
        cell = 0;

Reply via email to