Skip to content

Commit

Permalink
Fixed missing 20th line in some cases in nolol #110
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaumgarten committed Sep 19, 2021
1 parent 41941a9 commit 512d87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nolol/converter_gotos.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (c *Converter) removeFinalGotoIfNeeded(prog *ast.Program) error {
if number, isnumber := stmt.Line.(*ast.NumberConstant); isnumber {
if number.Value == "1" {
// remove the line
prog.Lines = prog.Lines[:len(prog.Lines)-2]
prog.Lines = prog.Lines[:len(prog.Lines)-1]
}
}
}
Expand Down

0 comments on commit 512d87d

Please sign in to comment.