Skip to content

Commit 889139c

Browse files
committed
Fix bug in integer parsing for ALGOL 60
1 parent 7afa5da commit 889139c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

archive/a/algol60/even-odd.alg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ begin
4949
s := 1;
5050

5151
comment Ignore whitespace;
52-
for ch := indigit while ch = 12 do indigit;
52+
for ch := indigit while ch = 12 do;
5353

5454
comment Process signs: ignore "+" and invert sign if "-";
5555
signloop:

archive/a/algol60/prime-number.alg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ begin
4949
s := 1;
5050

5151
comment Ignore whitespace;
52-
for ch := indigit while ch = 12 do indigit;
52+
for ch := indigit while ch = 12 do;
5353

5454
comment Process signs: ignore "+" and invert sign if "-";
5555
signloop:

0 commit comments

Comments
 (0)