From 2c18e3c76aad1b426617db05a4384e7c3a920176 Mon Sep 17 00:00:00 2001 From: Zachary Waldowski Date: Mon, 30 Dec 2013 16:14:02 -0500 Subject: [PATCH] Darwin/aarch64: Fix "shadows declaration" warnings --- src/aarch64/ffi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index deb57678..398d2464 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -1081,12 +1081,12 @@ 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; 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); rvalue += get_basic_type_size (type); }