summaryrefslogtreecommitdiff
path: root/src/lib/reflect/value.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/reflect/value.go')
-rw-r--r--src/lib/reflect/value.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/reflect/value.go b/src/lib/reflect/value.go
index ea02f066f..473a308ee 100644
--- a/src/lib/reflect/value.go
+++ b/src/lib/reflect/value.go
@@ -693,7 +693,7 @@ export type StructValue interface {
type StructValueStruct struct {
Common;
- field *[]Value;
+ field []Value;
}
func (v *StructValueStruct) Len() int {
@@ -850,7 +850,7 @@ export func CopyArray(dst ArrayValue, src ArrayValue, n int) {
dstp := uintptr(dst.Elem(0).Addr());
srcp := uintptr(src.Elem(0).Addr());
end := uintptr(n)*uintptr(dt.Size());
- if dst.Type().Size() % 8 == 0 {
+ if end % 8 == 0 {
for i := uintptr(0); i < end; i += 8{
di := Addr(dstp + i);
si := Addr(srcp + i);