mirror of https://github.com/goccy/go-json.git
Merge pull request #67 from zchee/const-uintptrSize
Change uintptrSize to constant
This commit is contained in:
commit
2e411ac3f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue