mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
check: add maxPointerBounds and funcBounds
This commit is contained in:
1 parent
8ac22ceab2
commit
6411561deb
3 files changed
+20
-6
No files matched your search
+1
-1
@@ -1232,7 +1232,7 @@ func (q *checker) tcheckChoose(n *a.Choose) error {
|
||||
return fmt.Errorf("check: incompatible choose functions %q and %q: %v",
|
||||
fQQID.Str(q.tm), gQQID.Str(q.tm), err)
|
||||
}
|
||||
o.SetMBounds(bounds{one, one})
|
||||
o.SetMBounds(bounds{one, maxPointerBounds})
|
||||
o.SetMType(typeExprNonNullptr)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user