[Aldor-l] alignof
Pippijn van Steenhoven
pip88nl at gmail.com
Fri Mar 21 17:43:44 EDT 2008
Hello developers and users of Aldor,
I keep wondering what to do with this:
# define alignof(T) (sizeof(struct {char a; T b;}) - sizeof(T))
as it's incorrect. When the compiler adds padding to the structure, this
macro may return a negative value, breaking everything.
--
Pippijn van Steenhoven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://aldor.org/pipermail/aldor-l_aldor.org/attachments/20080321/fed86c95/attachment.bin
More information about the Aldor-l
mailing list