Commit 706732d0 authored by Jeromy's avatar Jeromy

fixed keyspace tests on 32 bit systems

parent a35399ed
......@@ -113,8 +113,8 @@ func TestDistancesAndCenterSorting(t *testing.T) {
keys[i] = Key{Space: XORKeySpace, Bytes: a}
}
cmp := func(a int, b *big.Int) int {
return big.NewInt(int64(a)).Cmp(b)
cmp := func(a int64, b *big.Int) int {
return big.NewInt(a).Cmp(b)
}
if 0 != cmp(0, keys[2].Distance(keys[3])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment