From cfffabff410fff49903d8154a1c76521680e0f24 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Tue, 19 Mar 2024 09:31:38 -0400 Subject: [PATCH] chore: remove unecessary convertion --- lib/runtime/wazero/imports.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/wazero/imports.go b/lib/runtime/wazero/imports.go index 69c7715674..4390e14457 100644 --- a/lib/runtime/wazero/imports.go +++ b/lib/runtime/wazero/imports.go @@ -52,7 +52,7 @@ func newPointerSize(ptr, size uint32) (pointerSize uint64) { // splitPointerSize converts a 64bit pointer size to an // uint32 pointer and a uint32 size. func splitPointerSize(pointerSize uint64) (ptr uint32, size uint64) { - return uint32(pointerSize), uint64(pointerSize >> 32) + return uint32(pointerSize), pointerSize >> 32 } // read will read from 64 bit pointer size and return a byte slice