Commit 07de083a authored by Levin Zimmermann's avatar Levin Zimmermann

fixup! fixup! proto fix, see comment in protogen

parent 20c30536
...@@ -1757,7 +1757,7 @@ func (d *decoderM) genStructHead(path string, typ *types.Struct, userType types. ...@@ -1757,7 +1757,7 @@ func (d *decoderM) genStructHead(path string, typ *types.Struct, userType types.
// Addr isn't an Array/Struct but an extension type and this needs to be adjusted in proto.go? // Addr isn't an Array/Struct but an extension type and this needs to be adjusted in proto.go?
// We need to differentiate in 'genStructHead' between them? // We need to differentiate in 'genStructHead' between them?
d.resetPos() d.resetPos() // we need to reset, otherwise we may read the same data again, and wrong data types will result
d.emit("{") d.emit("{")
d.emit("_, tail, err := msgp.ReadArrayHeaderBytes(data)") d.emit("_, tail, err := msgp.ReadArrayHeaderBytes(data)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment