diff --git a/analyzers/conversion_overflow.go b/analyzers/conversion_overflow.go index 6dbe00b520..78cfa3932a 100644 --- a/analyzers/conversion_overflow.go +++ b/analyzers/conversion_overflow.go @@ -452,6 +452,7 @@ func walkBranchForConvert(block *ssa.BasicBlock, instr *ssa.Convert, visitedIfs bounds.minValue = toPtr(maxWithPtr(result.minValue, bounds.minValue)) bounds.maxValue = toPtr(minWithPtr(result.maxValue, bounds.maxValue)) bounds.explixitPositiveVals = append(bounds.explixitPositiveVals, result.explicitPositiveVals...) + bounds.explicitNegativeVals = append(bounds.explicitNegativeVals, result.explicitNegativeVals...) } case *ssa.Call: if v == instr.X {