From a7188cc6500d6805a4d8de9d74ecc6d728d4af33 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 5 Sep 2014 14:43:24 +0000 Subject: [PATCH] runtime: Use correct size for unsafe.Pointer GC instructions. From-SVN: r214965 --- libgo/runtime/go-unsafe-pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/runtime/go-unsafe-pointer.c b/libgo/runtime/go-unsafe-pointer.c index 67b2999df5d..729e9a19736 100644 --- a/libgo/runtime/go-unsafe-pointer.c +++ b/libgo/runtime/go-unsafe-pointer.c @@ -39,7 +39,7 @@ static const String reflection_string = sizeof REFLECTION - 1 }; -const uintptr unsafe_Pointer_gc[] = {8, GC_APTR, 0, GC_END}; +const uintptr unsafe_Pointer_gc[] = {sizeof(void*), GC_APTR, 0, GC_END}; const struct __go_type_descriptor unsafe_Pointer = { -- 2.30.2