Change uintptrSize to constant

This commit is contained in:
Koichi Shiraishi 2020-12-09 19:12:33 +09:00
parent 73ba04190f
commit cdac126d80
No known key found for this signature in database
GPG Key ID: A71DFD3B4DA7A79B
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
"unsafe"
)
var uintptrSize = unsafe.Sizeof(uintptr(0))
const uintptrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const
type opcode struct {
op opType // operation type