Files
linuxkit/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go
Justin Cormack 4751d70b18 Update vendoring and fix Windows build
We were missing one repo needed for Windows; but we have also not deleted
a bunch of vendored code that we are no longer using.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-15 17:43:04 +01:00

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 int16, increment int16, min int16, max int16) int16 {
return ensureInRange(n+increment, min, max)
}