common: all golint warnings removed (#16852)

* common: all golint warnings removed

* common: fixups
This commit is contained in:
kiel barry
2018-06-14 02:52:50 -07:00
committed by Péter Szilágyi
parent cfde0b5f52
commit d0fd8d6fc2
6 changed files with 14 additions and 8 deletions

View File

@ -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))
)