mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
base: use wuffs_base__empty_slice_u8 more often
This commit is contained in:
1 parent
9a68ec70c6
commit
5407f39386
8 files changed
+28
-28
No files matched your search
@@ -343,7 +343,7 @@ func writeOutParamZeroValue(b *buffer, tm *t.Map, typ *a.TypeExpr) error {
|
||||
return nil
|
||||
} else if typ.IsEitherSliceType() {
|
||||
if inner := typ.Inner(); (inner.Decorator() == 0) && (inner.QID() == t.QID{t.IDBase, t.IDU8}) {
|
||||
b.writes("wuffs_base__make_slice_u8(NULL, 0)")
|
||||
b.writes("wuffs_base__empty_slice_u8()")
|
||||
return nil
|
||||
}
|
||||
} else if (typ.Decorator() == 0) && (typ.QID()[0] == t.IDBase) {
|
||||
|
||||
Reference in new issue
Block a user