Fix BigMax to return the biggest number, not the smallest

This commit is contained in:
Maran 2014-06-10 17:15:18 +02:00
parent 2995d6c281
commit 2e6cf42011

@ -68,8 +68,8 @@ func BigCopy(src *big.Int) *big.Int {
// Returns the maximum size big integer
func BigMax(x, y *big.Int) *big.Int {
if x.Cmp(y) <= 0 {
return x
return y
}
return y
return x
}