sizeof in initializer expression not working as expected
Paolo Bonzini
bonzini@gnu.org
Thu Jan 29 17:03:00 GMT 2009
Bruce Korb wrote:
> Hi,
>
> I was trying to figure out how come a memory allocation was short.
> I think I've stumbled onto the issue. "evt_t" is a 48 byte structure
> and "tpd_uptr" is a uintptr_t. "sz" initializes to 52 (decimal).
> The value would be correct if I were not trying to multiply the
> size of the pointer by 4. The result should be 64.
I think all you can do is the usual preprocessed testcase submission to
bugzilla.
Paolo
More information about the Gcc
mailing list