Commit e85e7ebcf0

Andrew Kelley <superjoe30@gmail.com>
2016-01-25 22:13:25
bootstrap: use %% operator instead of cast
1 parent 4b9e1dd
Changed files (1)
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);
 }