diff options
author | Russ Cox <rsc@golang.org> | 2009-01-16 14:58:14 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-16 14:58:14 -0800 |
commit | c000d2eb1c11999b15772ad582b364604f6f8acf (patch) | |
tree | 321251a8cd180ad7856af54e8e531850d0735fb0 /src/lib/reflect/value.go | |
parent | 969365a06e210a3a3c969a99585e868aecc6af8a (diff) | |
download | golang-c000d2eb1c11999b15772ad582b364604f6f8acf.tar.gz |
casify, cleanup sys
R=r
OCL=22978
CL=22984
Diffstat (limited to 'src/lib/reflect/value.go')
-rw-r--r-- | src/lib/reflect/value.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/reflect/value.go b/src/lib/reflect/value.go index 63752d84d..ebd3c5f4a 100644 --- a/src/lib/reflect/value.go +++ b/src/lib/reflect/value.go @@ -48,12 +48,12 @@ func (c *commonValue) Addr() Addr { func (c *commonValue) Interface() interface {} { var i interface {}; if c.typ.Size() > 8 { // TODO(rsc): how do we know it is 8? - i = sys.unreflect(c.addr.(uintptr).(uint64), c.typ.String(), true); + i = sys.Unreflect(c.addr.(uintptr).(uint64), c.typ.String(), true); } else { if uintptr(c.addr) == 0 { panicln("reflect: address 0 for", c.typ.String()); } - i = sys.unreflect(uint64(uintptr(*c.addr.(*Addr))), c.typ.String(), false); + i = sys.Unreflect(uint64(uintptr(*c.addr.(*Addr))), c.typ.String(), false); } return i; } @@ -876,7 +876,7 @@ export func CopyArray(dst ArrayValue, src ArrayValue, n int) { export func NewValue(e interface {}) Value { - value, typestring, indir := sys.reflect(e); + value, typestring, indir := sys.Reflect(e); typ, ok := typecache[typestring]; if !ok { typ = ParseTypeString("", typestring); |