mirror of https://github.com/goccy/go-json.git
Change uintptrSize to constant
This commit is contained in:
parent
73ba04190f
commit
cdac126d80
|
@ -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