mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +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))
|
||||
}
|
||||
|
||||
@@ -625,7 +625,7 @@ pri func decoder.decode_id_part1!??(dst ptr base.pixel_buffer, src base.io_reade
|
||||
this.copy_to_image_buffer!?(pb:args.dst)
|
||||
}
|
||||
}
|
||||
var block_size base.u64 = args.src.read_u8_as_u64!??()
|
||||
var block_size base.u64[..255] = args.src.read_u8_as_u64!??()
|
||||
if block_size == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user