Darwin/iOS: Fix mis-typing of vfp_reg_free
authorZachary Waldowski <zach@waldowski.me>
Mon, 30 Dec 2013 20:27:14 +0000 (15:27 -0500)
committerZachary Waldowski <zach@waldowski.me>
Wed, 5 Feb 2014 19:28:58 +0000 (14:28 -0500)
src/arm/ffi.c

index 3b39056..7cd9289 100644 (file)
@@ -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);