From afb5e6229724113b8b07f48be0e494b704a784be Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 4 Dec 2009 03:43:40 +0000 Subject: ffi_darwin.c (ffi_prep_args): Increment next_arg and fparg_count twice for long double. * src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and fparg_count twice for long double. From-SVN: r154967 --- libffi/src/powerpc/ffi_darwin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libffi/src') diff --git a/libffi/src/powerpc/ffi_darwin.c b/libffi/src/powerpc/ffi_darwin.c index 4c3f834..ff480b0 100644 --- a/libffi/src/powerpc/ffi_darwin.c +++ b/libffi/src/powerpc/ffi_darwin.c @@ -167,6 +167,8 @@ void ffi_prep_args(extended_cif *ecif, unsigned long *const stack) *fpr_base++ = double_tmp; else *(double *) next_arg = double_tmp; + next_arg += 2; + fparg_count++; double_tmp = ((double *) *p_argv)[1]; if (fparg_count < NUM_FPR_ARG_REGISTERS) -- cgit v1.1