General gcc4.0 porting guide

Miloslav Trmac mitr at volny.cz
Fri Apr 29 12:28:59 UTC 2005


On Fri, Apr 29, 2005 at 02:25:27PM +0200, Hans de Goede wrote:
> Miloslav Trmac wrote:
> >foo = (short int *)(foo + 1);
> Wrong (again) people please don't try to help unless you know how 
> pointer arithmetic works in C.
Ooops...
People please don't assume ignorance when it can be explained by
lack of attention :)

Let me use this space to point out that the code is not portable;
accessing unaligned pointers can be a fatal error on some
architectures.
	Mirek




More information about the fedora-extras-list mailing list