Skip to content

Commit

Permalink
Update bsort.alan to match bsort.grc (#31)
Browse files Browse the repository at this point in the history
This edit updates the bsort.alan so i matches the behavior of the grace counterpart, hence they will produce the same output.
  • Loading branch information
purpl3F0x authored Aug 27, 2024
1 parent 9de4527 commit d90babc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alan/programs/bsort.alan
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ main () : proc
seed = 65;
i = 0;
while (i < 16) {
seed = (seed * 137 + 220 + i) % 101;
seed = (seed * 137 + 221 + i) % 101;
x[i] = seed;
i = i+1;
}
writeArray("Initial array: ", 16, x);
bsort(16, x);
writeArray("Sorted array: ", 16, x);
writeArray("Sorted array: ", 16, x);
} -- main

0 comments on commit d90babc

Please sign in to comment.