mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix codegen for skip_fast
args[0] is actual, args[1] is worst_case.
This commit is contained in:
1 parent
630a96ede6
commit
97f2570977
1 file changed
+1
-1
@@ -149,7 +149,7 @@ func (g *gen) writeBuiltinIOReader(b *buffer, recv *a.Expr, method t.ID, args []
|
||||
// call (to a static inline function) instead of a struct literal, to
|
||||
// avoid a "expression result unused" compiler error.
|
||||
b.writes("(iop_a_src += ")
|
||||
if err := g.writeExpr(b, args[1].AsArg().Value(), rp, depth); err != nil {
|
||||
if err := g.writeExpr(b, args[0].AsArg().Value(), rp, depth); err != nil {
|
||||
return err
|
||||
}
|
||||
b.writes(", wuffs_base__return_empty_struct())")
|
||||
|
||||
Reference in new issue
Block a user