aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/encoding/gob/codec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/encoding/gob/codec_test.go')
-rw-r--r--src/pkg/encoding/gob/codec_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/encoding/gob/codec_test.go b/src/pkg/encoding/gob/codec_test.go
index c7b2567ca0..4f17a28931 100644
--- a/src/pkg/encoding/gob/codec_test.go
+++ b/src/pkg/encoding/gob/codec_test.go
@@ -323,7 +323,7 @@ func execDec(typ string, instr *decInstr, state *decoderState, t *testing.T, val
if v+state.fieldnum != 6 {
t.Fatalf("decoding field number %d, got %d", 6, v+state.fieldnum)
}
- instr.op(instr, state, value)
+ instr.op(instr, state, value.Elem())
state.fieldnum = 6
}