forked from mirror/go-json
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"
|
"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
|
||||||
|
|
Loading…
Reference in New Issue