Skip to content

Commit

Permalink
chore: remove unecessary convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Mar 19, 2024
1 parent 517ce89 commit cfffabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/wazero/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfffabf

Please sign in to comment.