From e85e7ebcf0d3e47f0766a13233daa26eb0a9e277 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 25 Jan 2016 14:13:25 -0700 Subject: [PATCH] bootstrap: use %% operator instead of cast --- std/bootstrap.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/std/bootstrap.zig b/std/bootstrap.zig index 1fa8a0e184..10afb0addc 100644 --- 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); }