Is it a Bug? (void*)
Glen Beane
glen.beane@jax.org
Fri Mar 23 12:58:00 GMT 2007
Duft Markus wrote:
> Hi
>
> I'm porting lots of stuff to windows (i know, *arg*...) and while doing
> so i found something interesting in a C Source file:
>
> void* myptr = (void*)otherptr + 1;
what about doing the conversion after incrementing the pointer?
void *myptr = (void*)(otherptr + 1);
--
Glen L. Beane
Software Engineer II
The Jackson Laboratory
Phone (207) 288-6153
More information about the Gcc-help
mailing list