mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Re-do how limits work.
This commit is contained in:
1 parent
a382101a9c
commit
8ff453c752
16 files changed
+389
-122
No files matched your search
+1
-2
@@ -613,9 +613,8 @@ func (n *TypeExpr) HasPointers() bool {
|
||||
for ; n != nil; n = n.Inner() {
|
||||
switch n.id0.Key() {
|
||||
case 0:
|
||||
// TODO: add t.KeyReader1, after figuring out how limit's should really work.
|
||||
switch n.id1.Key() {
|
||||
case t.KeyBuf1, t.KeyWriter1, t.KeyBuf2:
|
||||
case t.KeyBuf1, t.KeyReader1, t.KeyWriter1, t.KeyBuf2:
|
||||
return true
|
||||
}
|
||||
case t.KeyPtr, t.KeyNptr, t.KeyColon:
|
||||
|
||||
Reference in new issue
Block a user