mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Rename a 'b' variable.
This commit is contained in:
1 parent
f3970d6670
commit
f839603198
1 file changed
+6
-6
@@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user