Eric Sandall [2005-12-13 11:16]:
> >    while (dst < dst_end)
> > -   *dst++ = (*src++ | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff);
> > +   *dst = (*src | PIXEL_SOLID_ALPHA) & (*dst | 0x00ffffff);
> > +           dst++;
> > +           src++;
> > }
> 
> Shouldn't pre-increment (e.g. ++dst) be used instead of post-increment
> (e.g. dst++) as the post-increment in C, IIRC, requires the object to
> be copied, incremented, and then reassigned, whereas the pre-increment
> just increments without all the copying and reassigning.

Since you cannot overload the ++ operator, and there are no classes and
objects in C, this doesn't apply to C at all.

Regards,
Tilman

Attachment: pgpauuv8uLiAE.pgp
Description: PGP signature

Reply via email to