mirror of https://github.com/goccy/go-json.git
Fix StructFieldHead operation
This commit is contained in:
parent
99a5b20e5e
commit
6681db131f
|
@ -550,7 +550,7 @@ func (e *Encoder) run(code *opcode) error {
|
||||||
e.encodeBytes(field.key)
|
e.encodeBytes(field.key)
|
||||||
}
|
}
|
||||||
code = field.next
|
code = field.next
|
||||||
code.ptr = ptr
|
code.ptr = ptr + field.offset
|
||||||
field.nextField.ptr = ptr
|
field.nextField.ptr = ptr
|
||||||
}
|
}
|
||||||
case opStructFieldAnonymousHead:
|
case opStructFieldAnonymousHead:
|
||||||
|
|
Loading…
Reference in New Issue