aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-10 23:15:18 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-10 23:15:18 +0800
commit2e6cf42011a4176a01f3e3f777cc1ddc4125511f (patch)
tree4a11c695402ee73ec0e623e3d5ea87b50adbac5d /ethutil
parent2995d6c281b83f5bb055a22093b2b94e64c477d3 (diff)
downloadgo-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.gz
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.bz2
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.lz
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.xz
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.tar.zst
go-tangerine-2e6cf42011a4176a01f3e3f777cc1ddc4125511f.zip
Fix BigMax to return the biggest number, not the smallest
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/big.go4
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
}