runtime: Use correct size for unsafe.Pointer GC instructions.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 5 Sep 2014 14:43:24 +0000 (14:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 5 Sep 2014 14:43:24 +0000 (14:43 +0000)
From-SVN: r214965

libgo/runtime/go-unsafe-pointer.c

index 67b2999df5db89df3750119ceb01ba251f4d58f3..729e9a19736694439ede233745c2cb035f879e64 100644 (file)
@@ -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 =
 {