aboutsummaryrefslogtreecommitdiffstats
path: root/common/math
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-06-14 17:52:50 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-06-14 17:52:50 +0800
commitd0fd8d6fc29ec859650adf30718e2b06786e854f (patch)
tree5eafbd61e5886245ab48c1670337ca5d6be14718 /common/math
parentcfde0b5f5204647e356a229463337b104552fe2a (diff)
downloadgo-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.gz
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.bz2
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.lz
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.xz
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.zst
go-tangerine-d0fd8d6fc29ec859650adf30718e2b06786e854f.zip
common: all golint warnings removed (#16852)
* common: all golint warnings removed * common: fixups
Diffstat (limited to 'common/math')
-rw-r--r--common/math/big.go3
-rw-r--r--common/math/integer.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/common/math/big.go b/common/math/big.go
index dbf2770a9..9d2e7946d 100644
--- a/common/math/big.go
+++ b/common/math/big.go
@@ -22,12 +22,13 @@ import (
"math/big"
)
+// Various big integer limit values.
var (
tt255 = BigPow(2, 255)
tt256 = BigPow(2, 256)
tt256m1 = new(big.Int).Sub(tt256, big.NewInt(1))
- MaxBig256 = new(big.Int).Set(tt256m1)
tt63 = BigPow(2, 63)
+ MaxBig256 = new(big.Int).Set(tt256m1)
MaxBig63 = new(big.Int).Sub(tt63, big.NewInt(1))
)
diff --git a/common/math/integer.go b/common/math/integer.go
index 7eff4d3b0..93b1d036d 100644
--- a/common/math/integer.go
+++ b/common/math/integer.go
@@ -21,8 +21,8 @@ import (
"strconv"
)
+// Integer limit values.
const (
- // Integer limit values.
MaxInt8 = 1<<7 - 1
MinInt8 = -1 << 7
MaxInt16 = 1<<15 - 1