Skip to content

Commit 12e4bdc

Browse files
committed
Fix dump of opcode
1 parent f93d82d commit 12e4bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/encoder/opcode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ func (c *Opcode) dumpValue(code *Opcode) string {
553553

554554
func (c *Opcode) Dump() string {
555555
codes := []string{}
556-
for code := c; code.Op != OpEnd; {
556+
for code := c; code.Op != OpEnd && code.Op != OpInterfaceEnd; {
557557
switch code.Op.CodeType() {
558558
case CodeSliceHead:
559559
codes = append(codes, c.dumpHead(code))

0 commit comments

Comments
 (0)