--- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-25 07:22 ---
b+4096 is the same as (typeof(b)) ( ((char*)b) + 4096 * sizeof(*b) ) which is
not you wanted.
You should write it as:
(chunk*) ( ((char*)b) + 4096+sizeof(chunk) )
--
pinskia at gcc dot gnu dot org changed:
--- Comment #2 from ftwilliam at gmail dot com 2007-06-25 07:39 ---
(In reply to comment #1)
b+4096 is the same as (typeof(b)) ( ((char*)b) + 4096 * sizeof(*b) ) which is
not you wanted.
You should write it as:
(chunk*) ( ((char*)b) + 4096+sizeof(chunk) )
Thank you very much