In message: <86tyn4tbuc....@ds4.des.no>
            Dag-Erling Smørgrav <d...@des.no> writes:
: Jilles Tjoelker <jil...@stack.nl> writes:
: > In other cases, I propose adding a cast to void * in between, like
: >   (struct sockaddr_in *)(void *)ai->ai_addr
: 
: Better to cast through uintptr_t.  Perhaps we should have a
: __DECONST-like macro for this?
: 
: #define __ALIGNED_CAST(t, v) ((t)(uintptr_t)(v))

I like the idea of a macro.  Why is a cast through uintptr_t better?

Warner
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to