------- Comment #5 from john dot spelis at 3dlabs dot com 2008-09-22 20:40 ------- Subject: Re: Pointer arithmetic yields strange result
Apologies; never realised that pointer arithmetic was defined in that fashion (i.e. must always be a multiple of the object size). Sorry to have bothered you. Best Regards. On 22 Sep 2008, pinskia at gcc dot gnu dot org wrote: > > > ------- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-22 19:54 > ------- > This is invalid code as the difference between ((EDIDDetailed *) > &pExt->checksum) - pDTD is 88 which is not a multiple of 18. This happens the > same way on powerpc. > > > -- > > pinskia at gcc dot gnu dot org changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|NEW |RESOLVED > Component|target |c > Resolution| |INVALID > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37609