Fix argument and return value alignment in `scm_i_foreign_call'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 30 May 2010 20:54:39 +0000 (22:54 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 30 May 2010 20:54:39 +0000 (22:54 +0200)
commit86425e26539fc1ffc145f74730c846cb724179a6
treeff3b1d105618ada9b4a30d10959fb768ff0492ab
parent1880c97df10770eba8dbf1f068903e713dbf3f7e
Fix argument and return value alignment in `scm_i_foreign_call'.

* libguile/foreign.c (scm_i_foreign_call): Fix the computation of
  ARG_SIZE wrt. alignment.  Arrange so that the address ARGS[i] is
  aligned, rather than checking whether OFF is aligned.  Have the RVALUE
  be at least word-aligned, which fixes calls to `char'-returning
  functions on `armv5tel-*-linux-gnueabi'.
libguile/foreign.c