diff --git a/encode_vm.go b/encode_vm.go index 9efcb3b..7126476 100644 --- a/encode_vm.go +++ b/encode_vm.go @@ -189,7 +189,6 @@ func (e *Encoder) run(code *opcode) error { e.encodeString(*(*string)(unsafe.Pointer(&bytes))) } code = code.next - code.ptr = ptr case opSliceHead: p := code.ptr headerCode := code.toSliceHeaderCode()