mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Call SetMBounds when bounds-checking expressions
This commit is contained in:
1 parent
a506657c53
commit
ba3b97ec69
2 files changed
+10
-2
No files matched your search
@@ -346,6 +346,10 @@ func (q *checker) tcheckExpr(n *a.Expr, depth uint32) error {
|
||||
}
|
||||
depth++
|
||||
|
||||
if n.MType() != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch op := n.Operator(); {
|
||||
case op.IsXUnaryOp():
|
||||
return q.tcheckExprUnaryOp(n, depth)
|
||||
|
||||
Reference in new issue
Block a user