mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Allow an io_limit limit to be a refined base.u64
This commit is contained in:
1 parent
fad2ddce68
commit
6fe313a72c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -135,7 +135,7 @@ func (q *checker) tcheckStatement(n *a.Node) error {
|
||||
if err := q.tcheckExpr(n.Arg1(), 0); err != nil {
|
||||
return err
|
||||
}
|
||||
if typ := n.Arg1().MType(); !typ.Eq(arg1Typ) {
|
||||
if typ := n.Arg1().MType(); !typ.EqIgnoringRefinements(arg1Typ) {
|
||||
return fmt.Errorf("check: %s expression %q, of type %q, does not have type %q",
|
||||
n.Keyword().Str(q.tm), n.Arg1().Str(q.tm), typ.Str(q.tm), arg1Typ.Str(q.tm))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user