summaryrefslogtreecommitdiff
path: root/libgo/runtime
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-02 23:17:05 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-02 23:17:05 +0000
commit086f95898fe86dccdfa10c90a81b19bf80fec771 (patch)
tree5fbc99ea3c9393c01d37ea240bfbc042f12a989f /libgo/runtime
parent80e4667142e99591aa5b26675f04c91fe2a4e587 (diff)
downloadgcc-086f95898fe86dccdfa10c90a81b19bf80fec771.tar.gz
runtime: Fix reflect.Call support for 64-bit ints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/go-reflect-call.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libgo/runtime/go-reflect-call.c b/libgo/runtime/go-reflect-call.c
index 6455ff13567..06edae45026 100644
--- a/libgo/runtime/go-reflect-call.c
+++ b/libgo/runtime/go-reflect-call.c
@@ -75,15 +75,15 @@ go_slice_to_ffi (
const struct __go_slice_type *descriptor __attribute__ ((unused)))
{
ffi_type *ret;
- ffi_type *intgo;
+ ffi_type *ffi_intgo;
ret = (ffi_type *) __go_alloc (sizeof (ffi_type));
ret->type = FFI_TYPE_STRUCT;
ret->elements = (ffi_type **) __go_alloc (4 * sizeof (ffi_type *));
ret->elements[0] = &ffi_type_pointer;
- intgo = sizeof (intgo) == 4 ? &ffi_type_sint32 : &ffi_type_sint64;
- ret->elements[1] = intgo;
- ret->elements[2] = intgo;
+ ffi_intgo = sizeof (intgo) == 4 ? &ffi_type_sint32 : &ffi_type_sint64;
+ ret->elements[1] = ffi_intgo;
+ ret->elements[2] = ffi_intgo;
ret->elements[3] = NULL;
return ret;
}
@@ -117,14 +117,14 @@ static ffi_type *
go_string_to_ffi (void)
{
ffi_type *ret;
- ffi_type *intgo;
+ ffi_type *ffi_intgo;
ret = (ffi_type *) __go_alloc (sizeof (ffi_type));
ret->type = FFI_TYPE_STRUCT;
ret->elements = (ffi_type **) __go_alloc (3 * sizeof (ffi_type *));
ret->elements[0] = &ffi_type_pointer;
- intgo = sizeof (intgo) == 4 ? &ffi_type_sint32 : &ffi_type_sint64;
- ret->elements[1] = intgo;
+ ffi_intgo = sizeof (intgo) == 4 ? &ffi_type_sint32 : &ffi_type_sint64;
+ ret->elements[1] = ffi_intgo;
ret->elements[2] = NULL;
return ret;
}