Darwin/aarch64: Fix "shadows declaration" warnings

This commit is contained in:
Zachary Waldowski
2013-12-30 16:14:02 -05:00
parent 1b8a8e20e3
commit 2c18e3c76a

View File

@@ -1081,12 +1081,12 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
case FFI_TYPE_STRUCT: case FFI_TYPE_STRUCT:
if (is_hfa (cif->rtype)) if (is_hfa (cif->rtype))
{ {
int i; int j;
unsigned short type = get_homogeneous_type (cif->rtype); unsigned short type = get_homogeneous_type (cif->rtype);
unsigned elems = element_count (cif->rtype); unsigned elems = element_count (cif->rtype);
for (i = 0; i < elems; i++) for (j = 0; j < elems; j++)
{ {
void *reg = get_basic_type_addr (type, context, i); void *reg = get_basic_type_addr (type, context, j);
copy_basic_type (reg, rvalue, type); copy_basic_type (reg, rvalue, type);
rvalue += get_basic_type_size (type); rvalue += get_basic_type_size (type);
} }