Fix FFI struct sizing to account for trailing padding.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 21 May 2012 04:30:45 +0000 (00:30 -0400)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 21 May 2012 05:13:13 +0000 (01:13 -0400)
commitcff1d39b2003470b5dcdab988e279587ae2eed8c
tree4b9cda9c33e5b87bab1c50c58f5d15f2ea5174a8
parenta722bcaa13acd3185e8e7b84f64cb614a46f3532
Fix FFI struct sizing to account for trailing padding.

* libguile/foreign.c (scm_sizeof): Make sure the overall size is a
  multiple of the alignment of the structure.
* test-suite/tests/foreign.test: Test size of { double, int8 }.
libguile/foreign.c
test-suite/tests/foreign.test