mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Have Iterate bounds checking call bcheckBlock
This commit is contained in:
1 parent
dc446b91de
commit
d796fc75b2
1 file changed
+2
-4
@@ -269,10 +269,8 @@ func (q *checker) bcheckStatement(n *a.Node) error {
|
|||||||
v := o.AsVar()
|
v := o.AsVar()
|
||||||
q.facts = append(q.facts, makeSliceLengthEqEq(v.Name(), v.XType(), n.Length()))
|
q.facts = append(q.facts, makeSliceLengthEqEq(v.Name(), v.XType(), n.Length()))
|
||||||
}
|
}
|
||||||
for _, o := range n.Body() {
|
if err := q.bcheckBlock(n.Body()); err != nil {
|
||||||
if err := q.bcheckStatement(o); err != nil {
|
return err
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user