Skip to content

Commit

Permalink
fix: panic on embedded struct with recursive
Browse files Browse the repository at this point in the history
fixes goccy#459
  • Loading branch information
NgoKimPhu authored and smaeda-ks committed Jul 5, 2024
1 parent 5e2ae3f commit 6de3c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/encoder/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func (c *StructCode) ToAnonymousOpcode(ctx *compileContext) Opcodes {
prevField = firstField
codes = codes.Add(fieldCodes...)
}
ctx.structTypeToCodes[uintptr(unsafe.Pointer(c.typ))] = codes
return codes
}

Expand Down

0 comments on commit 6de3c6f

Please sign in to comment.