diff options
Diffstat (limited to 'src/encoding/gob/encode.go')
-rw-r--r-- | src/encoding/gob/encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/gob/encode.go b/src/encoding/gob/encode.go index 5f4d253..c83071c 100644 --- a/src/encoding/gob/encode.go +++ b/src/encoding/gob/encode.go @@ -601,7 +601,7 @@ func compileEnc(ut *userTypeInfo, building map[*typeInfo]bool) *encEngine { if ut.externalEnc == 0 && srt.Kind() == reflect.Struct { for fieldNum, wireFieldNum := 0, 0; fieldNum < srt.NumField(); fieldNum++ { f := srt.Field(fieldNum) - if !isSent(&f) { + if !isSent(srt, &f) { continue } op, indir := encOpFor(f.Type, seen, building) |