Merge pull request #67 from zchee/const-uintptrSize

Change uintptrSize to constant
This commit is contained in:
Masaaki Goshima 2020-12-09 19:57:29 +09:00 committed by GitHub
commit 2e411ac3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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