mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 08:50:34 -06:00
Merge branch 'james/zaddr' of https://github.com/dolthub/dolt into james/zaddr
This commit is contained in:
@@ -144,7 +144,7 @@ func ZAddr(v types.GeometryValue) [17]byte {
|
||||
}
|
||||
}
|
||||
if res := zMin[0] ^ zMax[0]; res != 0 {
|
||||
addr[0] = byte(64 - bits.LeadingZeros64(res) / 2)
|
||||
addr[0] = byte(64 - bits.LeadingZeros64(res)/2)
|
||||
} else {
|
||||
addr[0] = byte(32 + bits.LeadingZeros64(zMin[1]^zMax[1]) / 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user