From a75d05a74fca493b652fd1b3056d64cd8b248f37 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Thu, 27 Aug 2020 21:05:37 +0900 Subject: [PATCH] Fix unnecessary pointer assignment --- encode_vm.go | 1 - 1 file changed, 1 deletion(-) 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()