summaryrefslogtreecommitdiff
path: root/src/pkg/gob/decoder.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-07-13 11:41:02 -0700
committerRob Pike <r@golang.org>2009-07-13 11:41:02 -0700
commit2b6dd7e8eab343280d61d1d4314eaa0a386c7812 (patch)
tree082b4ebcdc6ecdc41c82e504e132b252b1ba8db4 /src/pkg/gob/decoder.go
parent44d908a936ce4ba313c0fb93c567d64ecd7fa7e5 (diff)
downloadgolang-2b6dd7e8eab343280d61d1d4314eaa0a386c7812.tar.gz
the name of the type was being sent twice. drop the outer instance.
R=rsc DELTA=10 (5 added, 1 deleted, 4 changed) OCL=31523 CL=31526
Diffstat (limited to 'src/pkg/gob/decoder.go')
-rw-r--r--src/pkg/gob/decoder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/gob/decoder.go b/src/pkg/gob/decoder.go
index 4941a788b..8676533e6 100644
--- a/src/pkg/gob/decoder.go
+++ b/src/pkg/gob/decoder.go
@@ -72,7 +72,7 @@ func (dec *Decoder) Decode(e interface{}) os.Error {
// Check type compatibility.
// TODO(r): need to make the decoder work correctly if the wire type is compatible
// but not equal to the local type (e.g, extra fields).
- if info.wire.name != dec.seen[id].name {
+ if info.wire.name() != dec.seen[id].name() {
dec.state.err = os.ErrorString("gob decode: incorrect type for wire value");
return dec.state.err
}