From 9775446b6441c91cd9059215c106aa3bcf949767 Mon Sep 17 00:00:00 2001 From: Zachary Waldowski Date: Sat, 30 Nov 2013 02:39:34 -0500 Subject: [PATCH] =?UTF-8?q?Darwin/aarch64:=20Fix=20=E2=80=9Cshadows=20decl?= =?UTF-8?q?aration=E2=80=9D=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/aarch64/ffi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index 1a3e8c22..a2c731b7 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -539,8 +539,8 @@ copy_hfa_to_reg_or_stack (void *memory, { int i; unsigned short type = get_homogeneous_type (ty); - unsigned elems = element_count (ty); - for (i = 0; i < elems; i++) + unsigned count = element_count (ty); + for (i = 0; i < count; i++) { void *reg = allocate_to_v (context, state); copy_basic_type (reg, memory, type); @@ -1081,10 +1081,10 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context, case FFI_TYPE_STRUCT: if (is_hfa (cif->rtype)) { - int i; + int j; unsigned short type = get_homogeneous_type (cif->rtype); unsigned elems = element_count (cif->rtype); - for (i = 0; i < elems; i++) + for (j = 0; j < elems; i++) { void *reg = get_basic_type_addr (type, context, i); copy_basic_type (reg, rvalue, type);