1
0
Fork 0

Fixed arguments printing order in y command

This commit is contained in:
Julien Dessaux 2022-08-21 21:07:21 +02:00
parent e18d169310
commit 1f53a5f4da
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -226,14 +226,15 @@ pub const Pointer = struct {
} }
// 19 // 19
try p.ss.toss.pushVector([2]i64{ 0, 0 }); try p.ss.toss.pushVector([2]i64{ 0, 0 });
i = 0; i = p.argv.len - 1;
while (i < p.argv.len) : (i += 1) { while (i >= 0) : (i -= 1) {
try p.ss.toss.push(0); try p.ss.toss.push(0);
var j: usize = p.argv[i].len - 1; var j: usize = p.argv[i].len - 1;
while (true) : (j -= 1) { while (true) : (j -= 1) {
try p.ss.toss.push(p.argv[i][j]); try p.ss.toss.push(p.argv[i][j]);
if (j == 0) break; if (j == 0) break;
} }
if (i == 0) break;
} }
// 18 // 18
i = 0; i = 0;