[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: type behavior of sys/endian.h
On Tue, Jul 21, 2009 at 09:27:18PM +0100, Iain Hibbert wrote:
> On Tue, 21 Jul 2009, Joerg Sonnenberger wrote:
> > On Sun, Jul 12, 2009 at 04:54:11PM +0000, David Holland wrote:
> > > Or maybe they should be made inline functions instead so they don't
> > > fail silently if passed pointers.
> > Any objections to the attached patch?
> should you also cast in the __identNN call as is done for the bswapNN
> +#define htole16(x) __ident16((uint16_t)(x))
That would defeat the purpose of using inline functions in first place.
Main Index |
Thread Index |