fix: overflow on 32 bits arch.

This commit is contained in:
Ludovic Fernandez 2018-04-04 15:04:04 +02:00 committed by Traefiker Bot
parent f7fd1f2a63
commit a19b93c966

View file

@ -233,7 +233,7 @@ func getFuncApplicationIntValueV1(labelName string, defaultValue int) func(task
return defaultValue return defaultValue
} }
return getIntValueV1(task, labelName, defaultValue, math.MaxInt64) return getIntValueV1(task, labelName, defaultValue, math.MaxInt32)
} }
} }
@ -254,7 +254,7 @@ func getFuncBoolValueV1(labelName string, defaultValue bool) func(task state.Tas
// Deprecated // Deprecated
func getFuncIntValueV1(labelName string, defaultValue int) func(task state.Task) int { func getFuncIntValueV1(labelName string, defaultValue int) func(task state.Task) int {
return func(task state.Task) int { return func(task state.Task) int {
return getIntValueV1(task, labelName, defaultValue, math.MaxInt64) return getIntValueV1(task, labelName, defaultValue, math.MaxInt32)
} }
} }