commit e85e7ebcf0d3e47f0766a13233daa26eb0a9e277 (tree) parent 4b9e1dd438827c054adc5316a0ccaf62486ac66c Author: Andrew Kelley <superjoe30@gmail.com> Date: Mon, 25 Jan 2016 14:13:25 -0700 bootstrap: use %% operator instead of cast Diffstat:
| M | std/bootstrap.zig | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/std/bootstrap.zig b/std/bootstrap.zig @@ -29,8 +29,6 @@ fn call_main() unreachable => { const ptr = argv[i]; args[i] = ptr[0...strlen(ptr)]; } - // TODO: replace the i32 cast with: - // main(args) %% exit(1) - // exit(0) - exit(i32(main(args))) + main(args) %% exit(1); + exit(0); }