Skip to content

Commit 22d8b89

Browse files
author
Gaius Mulley
committed
PR modula2/121164 Modula 2 build failure
This patch fixes the 2nd parameter name mismatch in ARRAYOFCHAR.mod. gcc/m2/ChangeLog: PR modula2/121164 * gm2-libs/ARRAYOFCHAR.mod (Write): Rename 2nd parameter name a to str. Signed-off-by: Gaius Mulley <[email protected]>
1 parent 8f94505 commit 22d8b89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gcc/m2/gm2-libs/ARRAYOFCHAR.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ IMPORT StrLib ;
3434
Write - writes a string to file f.
3535
*)
3636

37-
PROCEDURE Write (f: File; a: ARRAY OF CHAR) ;
37+
PROCEDURE Write (f: File; str: ARRAY OF CHAR) ;
3838
VAR
3939
len, i: CARDINAL ;
4040
BEGIN
41-
len := StrLib.StrLen (a) ;
41+
len := StrLib.StrLen (str) ;
4242
i := 0 ;
4343
WHILE i < len DO
44-
WriteChar (f, a[i]) ;
44+
WriteChar (f, str[i]) ;
4545
INC (i)
4646
END
4747
END Write ;

0 commit comments

Comments
 (0)