]> Cypherpunks repositories - gostls13.git/commit
hash/maphash: simplify pointer size checks
authorCherry Mui <cherryyz@google.com>
Thu, 21 Nov 2024 20:42:48 +0000 (15:42 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 21 Nov 2024 21:15:24 +0000 (21:15 +0000)
commita1d62aa475d163e97c416dd601fbf9ca996a8e47
treedd21bc153c46c500b7691ec7b41864360d5a1094
parentefe0a86551c30ceaf71361645023cbea913249d3
hash/maphash: simplify pointer size checks

Use internal/goarch.PtrSize, instead of unsafe.Sizeof(uintptr(0)).

Change-Id: If501ae9853ed384c4b9485e2c3b0aeba03c17685
Reviewed-on: https://go-review.googlesource.com/c/go/+/630795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
src/hash/maphash/maphash_runtime.go