mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
bootstrap: use %% operator instead of cast
This commit is contained in:
parent
4b9e1dd438
commit
e85e7ebcf0
@ -29,8 +29,6 @@ fn call_main() unreachable => {
|
|||||||
const ptr = argv[i];
|
const ptr = argv[i];
|
||||||
args[i] = ptr[0...strlen(ptr)];
|
args[i] = ptr[0...strlen(ptr)];
|
||||||
}
|
}
|
||||||
// TODO: replace the i32 cast with:
|
main(args) %% exit(1);
|
||||||
// main(args) %% exit(1)
|
exit(0);
|
||||||
// exit(0)
|
|
||||||
exit(i32(main(args)))
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user