Re: Is it a Bug? (void*)

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

 




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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux