Skip to content

Commit defd26f

Browse files
committed
Fix function signature for outIntegerArray for ALGOL 60
1 parent 190e22f commit defd26f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

archive/a/algol60/zeckendorf.alg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,19 @@ begin
176176
end outIntegerNoSpace;
177177

178178
comment Output integer array;
179-
procedure outIntegerArray(n, arr);
180-
value n, arr;
181-
integer n;
179+
procedure outIntegerArray(arr, arrLen);
180+
value arrLen;
182181
integer array arr;
182+
integer arrLen;
183183
begin
184184
integer i;
185-
for i := 1 step 1 until n do
185+
for i := 1 step 1 until arrLen do
186186
begin
187187
if i > 1 then outstring(1, ", ");
188188
outIntegerNoSpace(arr[i])
189189
end;
190190

191-
if n > 0 then outstring(1, "\n")
191+
if arrLen > 0 then outstring(1, "\n")
192192
end outIntegerArray;
193193

194194
integer argc, result, ch, numZecks;
@@ -205,6 +205,6 @@ begin
205205
comment Output Zeckendorf values;
206206
integer array zecks[1:(maxfibs + 1) % 2];
207207
numZecks := zeckendorf(result, zecks);
208-
outIntegerArray(numZecks, zecks)
208+
outIntegerArray(zecks, numZecks)
209209
end
210210
end

0 commit comments

Comments
 (0)