OSDN Git Service

versoin1.1.9 (#594)
[bytom/vapor.git] / vendor / github.com / tendermint / tmlibs / common / math.go
1 package common
2
3 func MaxInt(a, b int) int {
4         if a > b {
5                 return a
6         }
7         return b
8 }
9
10 func MinInt(a, b int) int {
11         if a < b {
12                 return a
13         }
14         return b
15 }