diff options
author | Julien Dessaux | 2022-08-21 21:07:21 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-08-21 21:07:21 +0200 |
commit | 1f53a5f4dab3e2c8a58a2f2039a1e8919f8d3ef7 (patch) | |
tree | 631653d8582fceed87efab53e94aa2c245032e40 /src | |
parent | Added forgotten change for last commit (diff) | |
download | zigfunge98-1f53a5f4dab3e2c8a58a2f2039a1e8919f8d3ef7.tar.gz zigfunge98-1f53a5f4dab3e2c8a58a2f2039a1e8919f8d3ef7.tar.bz2 zigfunge98-1f53a5f4dab3e2c8a58a2f2039a1e8919f8d3ef7.zip |
Fixed arguments printing order in y command
Diffstat (limited to 'src')
-rw-r--r-- | src/pointer.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pointer.zig b/src/pointer.zig index eedae33..1f09c6c 100644 --- a/src/pointer.zig +++ b/src/pointer.zig @@ -226,14 +226,15 @@ pub const Pointer = struct { } // 19 try p.ss.toss.pushVector([2]i64{ 0, 0 }); - i = 0; - while (i < p.argv.len) : (i += 1) { + i = p.argv.len - 1; + while (i >= 0) : (i -= 1) { try p.ss.toss.push(0); var j: usize = p.argv[i].len - 1; while (true) : (j -= 1) { try p.ss.toss.push(p.argv[i][j]); if (j == 0) break; } + if (i == 0) break; } // 18 i = 0; |