mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Mark deflate's init_fixed_huffman as !? not !??
This commit is contained in:
1 parent
312cdc8a0a
commit
cf51406fcf
3 files changed
+29
-20
No files matched your search
@@ -163,7 +163,11 @@ func (g *gen) writeStatementExpr(b *buffer, n *a.Expr, depth uint32) error {
|
||||
if n.Effect().Coroutine() {
|
||||
return nil
|
||||
} else if n.Effect().Optional() {
|
||||
b.writes("status = ")
|
||||
if g.currFunk.astFunc.Effect().Coroutine() {
|
||||
b.writes("status = ")
|
||||
} else {
|
||||
b.writes("{ wuffs_base__status status = ")
|
||||
}
|
||||
checkStatus = true
|
||||
}
|
||||
}
|
||||
@@ -172,7 +176,11 @@ func (g *gen) writeStatementExpr(b *buffer, n *a.Expr, depth uint32) error {
|
||||
}
|
||||
b.writes(";\n")
|
||||
if checkStatus {
|
||||
b.writes("if (status) { goto exit; }\n")
|
||||
if g.currFunk.astFunc.Effect().Coroutine() {
|
||||
b.writes("if (status) { goto exit; }\n")
|
||||
} else {
|
||||
b.writes("if (status) { return status; }}\n")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user