On Apr 30, 2012, at 12:38 PM, Thomas Rast wrote:
I can reproduce this. The problem is that __WORDSIZE is not defined,
either because it's Darwin or because the GCC is too old. It winds up
compiling the 32-bit case, which of course doesn't work for 64-bit
builds.
Great. I was worried about having to help you debug it via e-mail round-trips. :-D
Perhaps we can rewrite it in terms of sizeof(long) like this?
It does work for me, and seems pretty valid to me since long is actually the type you're storing it in.
~~ Brian G.