Rename a 'b' variable.

This commit is contained in:
Nigel Tao committed 2017-08-26 15:07:21 +10:00
1 parent f3970d6670
commit f839603198
1 file changed
+6 -6
+6 -6
View File
@@ -224,9 +224,9 @@ func (g *gen) writeFuncImplArgChecks(n *a.Func) error {
case oTyp.IsRefined(): case oTyp.IsRefined():
bounds := [2]*big.Int{} bounds := [2]*big.Int{}
for i, b := range oTyp.Bounds() { for i, bound := range oTyp.Bounds() {
if b != nil { if bound != nil {
if cv := b.ConstValue(); cv != nil { if cv := bound.ConstValue(); cv != nil {
bounds[i] = cv bounds[i] = cv
} }
} }
@@ -240,13 +240,13 @@ func (g *gen) writeFuncImplArgChecks(n *a.Func) error {
} }
} }
} }
for i, b := range bounds { for i, bound := range bounds {
if b != nil { if bound != nil {
op := '<' op := '<'
if i != 0 { if i != 0 {
op = '>' op = '>'
} }
checks = append(checks, fmt.Sprintf("%s%s %c %s", aPrefix, o.Name().String(g.tm), op, b)) checks = append(checks, fmt.Sprintf("%s%s %c %s", aPrefix, o.Name().String(g.tm), op, bound))
} }
} }
} }