apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr/random/unix apr_random.c
Date Thu, 06 Nov 2003 18:36:35 GMT
Ben Laurie wrote:

> BTW, on the subject of bitfield gotchas, never make boolean fields
> signed - why? Coz:
> 
> struct x { signed int onebitfield:1; } x;
> signed int someint;
> 
> x.onebitfield=TRUE;
> someint=TRUE;
> 
> assert(x.onebitfield == someint);  /* SPLAT!!! */

:)



Mime
View raw message