Fix StructFieldHead operation

This commit is contained in:
Masaaki Goshima 2020-08-25 17:19:19 +09:00
parent 99a5b20e5e
commit 6681db131f
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ func (e *Encoder) run(code *opcode) error {
e.encodeBytes(field.key)
}
code = field.next
code.ptr = ptr
code.ptr = ptr + field.offset
field.nextField.ptr = ptr
}
case opStructFieldAnonymousHead: