DEBSOURCES
Skip Quicknav
sources / git-lfs / 3.7.1-1 / tools / math.go
123456
package tools // ClampInt returns the integer "n" bounded between "low" and "high". func ClampInt(n, low, high int) int { return min(high, max(low, n)) }