mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Add built-in slice functions
This commit is contained in:
1 parent
333b11dc65
commit
339673ae82
8 files changed
+120
-45
No files matched your search
@@ -295,7 +295,7 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
|
||||
if err := g.writeExpr(b, v, replaceCallSuspendibles, parenthesesMandatory, 0); err != nil {
|
||||
return err
|
||||
}
|
||||
} else if n.XType().Decorator().Key() == t.KeyColon {
|
||||
} else if n.XType().IsSliceType() {
|
||||
// TODO: don't assume that the slice is a slice of u8.
|
||||
b.printf("((wuffs_base__slice_u8){})")
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user