containerd/vendor/src/github.com/Azure/go-ansiterm/winterm/utilities.go

10 lines
291 B
Go

// +build windows
package winterm
// AddInRange increments a value by the passed quantity while ensuring the values
// always remain within the supplied min / max range.
func AddInRange(n SHORT, increment SHORT, min SHORT, max SHORT) SHORT {
return ensureInRange(n+increment, min, max)
}