@@ -49,7 +49,7 @@ type rangeResult struct {
49
49
type branchResults struct {
50
50
minValue * int
51
51
maxValue * uint
52
- explixitPositiveVals []uint
52
+ explicitPositiveVals []uint
53
53
explicitNegativeVals []int
54
54
convertFound bool
55
55
}
@@ -336,9 +336,9 @@ func getResultRange(ifInstr *ssa.If, instr *ssa.Convert, visitedIfs map[*ssa.If]
336
336
result .maxValue = min (result .maxValue , elseBounds .maxValue )
337
337
}
338
338
339
- result .explicitPositiveVals = append (result .explicitPositiveVals , thenBounds .explixitPositiveVals ... )
339
+ result .explicitPositiveVals = append (result .explicitPositiveVals , thenBounds .explicitPositiveVals ... )
340
340
result .explicitNegativeVals = append (result .explicitNegativeVals , thenBounds .explicitNegativeVals ... )
341
- result .explicitPositiveVals = append (result .explicitPositiveVals , elseBounds .explixitPositiveVals ... )
341
+ result .explicitPositiveVals = append (result .explicitPositiveVals , elseBounds .explicitPositiveVals ... )
342
342
result .explicitNegativeVals = append (result .explicitNegativeVals , elseBounds .explicitNegativeVals ... )
343
343
344
344
return result
@@ -451,7 +451,7 @@ func walkBranchForConvert(block *ssa.BasicBlock, instr *ssa.Convert, visitedIfs
451
451
if result .isRangeCheck {
452
452
bounds .minValue = toPtr (max (result .minValue , bounds .minValue ))
453
453
bounds .maxValue = toPtr (min (result .maxValue , bounds .maxValue ))
454
- bounds .explixitPositiveVals = append (bounds .explixitPositiveVals , result .explicitPositiveVals ... )
454
+ bounds .explicitPositiveVals = append (bounds .explicitPositiveVals , result .explicitPositiveVals ... )
455
455
bounds .explicitNegativeVals = append (bounds .explicitNegativeVals , result .explicitNegativeVals ... )
456
456
}
457
457
case * ssa.Call :
0 commit comments