Re: sizeof in initializer expression not working as expected

2009-01-29 Thread Paolo Bonzini
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 t

sizeof in initializer expression not working as expected

2009-01-28 Thread Bruce Korb
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.