mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Fix C goto generation for while without continue.
This commit is contained in:
1 parent
98a07921b1
commit
8e279c51bf
3 files changed
+9
-3
No files matched your search
@@ -759,7 +759,10 @@ func (g *gen) writeStatement(n *a.Node, depth uint32) error {
|
||||
|
||||
case a.KJump:
|
||||
n := n.Jump()
|
||||
jt := g.perFunc.jumpTargets[n.JumpTarget()]
|
||||
jt, err := g.jumpTarget(n.JumpTarget())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
keyword := "continue"
|
||||
if n.Keyword().Key() == t.KeyBreak {
|
||||
keyword = "break"
|
||||
|
||||
Reference in new issue
Block a user