mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
cgen: allow "var x : nptr array[etc] etc"
This commit is contained in:
1 parent
dfab0d2b3d
commit
8ac22ceab2
7 files changed
+84
-31
No files matched your search
+1
-1
@@ -860,7 +860,7 @@ func (n *TypeExpr) BulkSize() *big.Int {
|
||||
}
|
||||
|
||||
func (n *TypeExpr) IsBulkNumType() bool {
|
||||
for ; n.id0 == t.IDArray; n = n.rhs.AsTypeExpr() {
|
||||
for ; (n.id0 == t.IDArray) || (n.id0 == t.IDRoarray); n = n.rhs.AsTypeExpr() {
|
||||
}
|
||||
return n.id0 == 0 && n.id1 == t.IDBase && n.id2.IsNumType()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user