diff options
author | lzmths <luizmatheus.ac@gmail.com> | 2015-12-11 19:47:26 -0300 |
---|---|---|
committer | lzmths <luizmatheus.ac@gmail.com> | 2015-12-11 19:47:26 -0300 |
commit | 2c27a851a6294e9dd9e7ef2af1dd63b9b257acc3 (patch) | |
tree | 3ae34c6f473bf11aa5449d9f1f69326e0f67407e | |
parent | 2b19a7dde1c2b9ea96fcd34c5eda08e59458544a (diff) | |
download | ffi-2c27a851a6294e9dd9e7ef2af1dd63b9b257acc3.tar.gz |
Refactoring conditional directives that break parts of statements.
-rw-r--r-- | ext/ffi_c/libffi/src/mips/ffi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ffi_c/libffi/src/mips/ffi.c b/ext/ffi_c/libffi/src/mips/ffi.c index 79cff9b..a7acb8a 100644 --- a/ext/ffi_c/libffi/src/mips/ffi.c +++ b/ext/ffi_c/libffi/src/mips/ffi.c @@ -76,6 +76,7 @@ static void ffi_prep_args(char *stack, void **p_argv; char *argp; ffi_type **p_arg; + int ecif_test; #ifdef FFI_MIPS_N32 /* If more than 8 double words are used, the remainder go @@ -92,10 +93,11 @@ static void ffi_prep_args(char *stack, memset(stack, 0, bytes); #ifdef FFI_MIPS_N32 - if ( ecif->cif->rstruct_flag != 0 ) + ecif_test = ecif->cif->rstruct_flag != 0; #else - if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) + ecif_test = ecif->cif->rtype->type == FFI_TYPE_STRUCT; #endif + if (ecif_test) { *(ffi_arg *) argp = (ffi_arg) ecif->rvalue; argp += sizeof(ffi_arg); |