aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-23 02:14:01 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-23 02:14:01 -0700
commitc0ea9290c4576f2111c8fc6b2d448f278effd80e (patch)
treec4b789b675b0083b3d9c2e32550a0299f2546cf5 /std
parent91d911007b8a12405c084cff53237ac26b1f2c5f (diff)
downloadzig-c0ea9290c4576f2111c8fc6b2d448f278effd80e.tar.gz
zig-c0ea9290c4576f2111c8fc6b2d448f278effd80e.zip
main returns %void
Diffstat (limited to 'std')
-rw-r--r--std/bootstrap.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/std/bootstrap.zig b/std/bootstrap.zig
index e4ad0d9fc0..1fa8a0e184 100644
--- a/std/bootstrap.zig
+++ b/std/bootstrap.zig
@@ -29,5 +29,8 @@ fn call_main() unreachable => {
const ptr = argv[i];
args[i] = ptr[0...strlen(ptr)];
}
- exit(main(args))
+ // TODO: replace the i32 cast with:
+ // main(args) %% exit(1)
+ // exit(0)
+ exit(i32(main(args)))
}