brodieG / vetr

Trust, but Verify
79 stars 2 forks source link

Confirm struct align issues are not critical #72

Closed brodieG closed 7 years ago

brodieG commented 7 years ago

Related, confirm that S_realloc doesn't mess things up given that R_alloc doesn't actually allocate length size, but rather, length size rounded up to the VECREC size, and that the header size is added.

brodieG commented 7 years ago

These don't seem to be critical. Double alignment is guaranteed, and all the STRUCT elements are either integers, size_t, or pointers so it should be okay (I guess it's possible for size_ts to not be double aligned?)