diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-10 23:15:18 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-10 23:15:18 +0800 |
commit | 2e6cf42011a4176a01f3e3f777cc1ddc4125511f (patch) | |
tree | 4a11c695402ee73ec0e623e3d5ea87b50adbac5d /ethutil/big.go | |
parent | 2995d6c281b83f5bb055a22093b2b94e64c477d3 (diff) | |
download | go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.gz go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.zst go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.zip |
Fix BigMax to return the biggest number, not the smallest
Diffstat (limited to 'ethutil/big.go')
-rw-r--r-- | ethutil/big.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethutil/big.go b/ethutil/big.go index 1c25a4784..7af6f7414 100644 --- a/ethutil/big.go +++ b/ethutil/big.go @@ -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 } |