mirror of
https://github.com/golang/go
synced 2024-11-20 10:34:42 -07:00
parent
e919275825
commit
2a54997baa
@ -375,7 +375,7 @@ func encOpFor(rt reflect.Type) (encOp, int, os.Error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, 0, err
|
return nil, 0, err
|
||||||
}
|
}
|
||||||
info := getTypeInfoNoError(typ);
|
info := mustGetTypeInfo(typ);
|
||||||
op = func(i *encInstr, state *encoderState, p unsafe.Pointer) {
|
op = func(i *encInstr, state *encoderState, p unsafe.Pointer) {
|
||||||
state.update(i);
|
state.update(i);
|
||||||
// indirect through info to delay evaluation for recursive structs
|
// indirect through info to delay evaluation for recursive structs
|
||||||
|
Loading…
Reference in New Issue
Block a user