It is not working.cellNextCounter value is not incremented On Thu, Oct 1, 2009 at 12:46 PM, johnmatthews2000 <[email protected]> wrote:
> > > --- In [email protected] <c-prog%40yahoogroups.com>, 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; > > > [Non-text portions of this message have been removed]
