mirror of
https://github.com/traefik/traefik.git
synced 2025-08-14 18:47:12 +02:00
fix: overflow on 32 bits arch.
This commit is contained in:
parent
f7fd1f2a63
commit
a19b93c966
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user