Skip to content

Commit

Permalink
groot/rdict: correctly handle generation of marshaling for base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed Apr 15, 2022
1 parent b02724a commit 8883629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion groot/rdict/gen_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (o *%[1]s) MarshalROOT(w *rbytes.WBuffer) (int, error) {
func (g *genGoType) genMarshalField(si rbytes.StreamerInfo, i int, se rbytes.StreamerElement) {
switch se := se.(type) {
case *StreamerBase:
g.printf("w.Write(&o.%s)\n", fmt.Sprintf("base%d", i))
g.printf("w.WriteObject(&o.%s)\n", fmt.Sprintf("base%d", i))

case *StreamerBasicPointer:
title := se.Title()
Expand Down

0 comments on commit 8883629

Please sign in to comment.