[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: General gcc4.0 porting guide



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]