mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Allow table base.u8 as a type
This commit is contained in:
1 parent
2301c763c3
commit
eda326726a
10 files changed
+60
-27
No files matched your search
@@ -399,6 +399,9 @@ func (g *gen) writeStatementVar(b *buffer, n *a.Var, depth uint32) error {
|
||||
} else if nTyp.IsSliceType() {
|
||||
// TODO: don't assume that the slice is a slice of base.u8.
|
||||
b.printf("((wuffs_base__slice_u8){})")
|
||||
} else if nTyp.IsTableType() {
|
||||
// TODO: don't assume that the table is a table of base.u8.
|
||||
b.printf("((wuffs_base__table_u8){})")
|
||||
} else if nTyp.IsIOType() {
|
||||
s := "reader"
|
||||
if nTyp.QID()[1] == t.IDIOWriter {
|
||||
|
||||
Reference in new issue
Block a user