mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Tighten up low_bits / high_bits bounds checking
This commit is contained in:
1 parent
8d05db48a4
commit
fd2d6e5b8a
3 files changed
+52
-22
No files matched your search
+1
-1
@@ -686,7 +686,7 @@ func (n *TypeExpr) IsNumTypeOrIdeal() bool {
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsRefined() bool {
|
||||
return n.id0 != t.IDArray && (n.lhs != nil || n.mhs != nil)
|
||||
return n.id0 == 0 && n.id1 == t.IDBase && n.id2.IsNumType() && (n.lhs != nil || n.mhs != nil)
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsArrayType() bool {
|
||||
|
||||
Reference in new issue
Block a user