Update module spf13/viper to v1.7.0 (#494)
Update module spf13/viper to v1.7.0 Reviewed-on: https://kolaente.dev/vikunja/api/pulls/494
This commit is contained in:
24
vendor/honnef.co/go/tools/staticcheck/vrp/vrp.go
vendored
24
vendor/honnef.co/go/tools/staticcheck/vrp/vrp.go
vendored
@ -722,16 +722,22 @@ func (g *Graph) widen(c Constraint, consts []Z) bool {
|
||||
}
|
||||
nlc := NInfinity
|
||||
nuc := PInfinity
|
||||
for _, co := range consts {
|
||||
if co.Cmp(ni.Lower) <= 0 {
|
||||
nlc = co
|
||||
break
|
||||
|
||||
// Don't get stuck widening for an absurd amount of time due
|
||||
// to an excess number of constants, as may be present in
|
||||
// table-based scanners.
|
||||
if len(consts) < 1000 {
|
||||
for _, co := range consts {
|
||||
if co.Cmp(ni.Lower) <= 0 {
|
||||
nlc = co
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, co := range consts {
|
||||
if co.Cmp(ni.Upper) >= 0 {
|
||||
nuc = co
|
||||
break
|
||||
for _, co := range consts {
|
||||
if co.Cmp(ni.Upper) >= 0 {
|
||||
nuc = co
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user