mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-06 06:07:30 +00:00
chore: better maphash test
This commit is contained in:
@@ -138,3 +138,5 @@ func escape[T any](x T) T {
|
||||
// ptrSize is the size of a pointer in bytes - unsafe.Sizeof(uintptr(0)) but as an ideal constant.
|
||||
// It is also the size of the machine's native word size (that is, 4 on 32-bit systems, 8 on 64-bit).
|
||||
const ptrSize = 4 << (^uintptr(0) >> 63)
|
||||
|
||||
const testComparableAllocations = false
|
||||
|
||||
Reference in New Issue
Block a user