Bug#215448: di_mem_chunk_alloc() should return sizeof(long) or better alignment
Richard Hirst <rhirst@linuxcare.com> writes:
> On Sun, Oct 12, 2003 at 11:48:07PM +0200, Falk Hueffner wrote:
> > Just use long mem[] there, we can assume a C99 compiler, and it will
> > ensure alignment (at least for all Linux platforms).
>
> Really? I thought the code later referenced something like
>
> &foo->mem[bar]
>
> which will surely break if you just s/char/long/
Dunno, might need to add casts there. I would've thought it only casts
the value to void*.
--
Falk
Reply to: