summaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorZachary Waldowski <zach@waldowski.me>2013-12-30 15:27:14 -0500
committerZachary Waldowski <zach@waldowski.me>2014-02-05 14:28:58 -0500
commit994be3a5c1d0d17b19103396103e128517fd62f9 (patch)
tree72e4e183ca8c1ae2b099ba941f54a72c45363878 /src/arm
parenta8e0a835ab1f62d03ad6391760e3e8b7732d24f8 (diff)
downloadlibffi-994be3a5c1d0d17b19103396103e128517fd62f9.tar.gz
Darwin/iOS: Fix mis-typing of vfp_reg_free
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arm/ffi.c b/src/arm/ffi.c
index 3b39056..7cd9289 100644
--- a/src/arm/ffi.c
+++ b/src/arm/ffi.c
@@ -871,7 +871,7 @@ static int vfp_type_p (ffi_type *t)
static int place_vfp_arg (ffi_cif *cif, ffi_type *t)
{
- int reg = cif->vfp_reg_free;
+ short reg = cif->vfp_reg_free;
int nregs = t->size / sizeof (float);
int align = ((t->type == FFI_TYPE_STRUCT_VFP_FLOAT
|| t->type == FFI_TYPE_FLOAT) ? 1 : 2);