From 1f53a5f4dab3e2c8a58a2f2039a1e8919f8d3ef7 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 21 Aug 2022 21:07:21 +0200 Subject: Fixed arguments printing order in y command --- src/pointer.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3