@cryptotaxi247 / kubo / commits / a0d77dbf9

fixed keyspace tests on 32 bit systems

Jeromy committed Oct 4, 2014 at 19:29 UTC a0d77dbf999cb67b3f995ace1666c9c9c08be0ab
1 file changed +2 -2
routing/keyspace/xor_test.go
+2 -2
@@ -113,8 +113,8 @@ func TestDistancesAndCenterSorting(t *testing.T) {
113 keys[i] = Key{Space: XORKeySpace, Bytes: a}
114 }
115
116 - cmp := func(a int, b *big.Int) int {
117 - return big.NewInt(int64(a)).Cmp(b)
116 + cmp := func(a int64, b *big.Int) int {
117 + return big.NewInt(a).Cmp(b)
118 }
119
120 if 0 != cmp(0, keys[2].Distance(keys[3])) {