diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-17 02:57:07 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-17 02:57:07 -0400 |
| commit | 79120612267f55901029dd57290ee90c0a3ec987 (patch) | |
| tree | 60a30197720ccd8152db8112d0c271a595e725cf /std/special/bootstrap.zig | |
| parent | 06a26f0965deff3d752da3d448b34872010d80f3 (diff) | |
| download | zig-79120612267f55901029dd57290ee90c0a3ec987.tar.gz zig-79120612267f55901029dd57290ee90c0a3ec987.zip | |
remove integer and float casting syntax
* add `@intCast`
* add `@floatCast`
* add `@floatToInt`
* add `@intToFloat`
See #1061
Diffstat (limited to 'std/special/bootstrap.zig')
| -rw-r--r-- | std/special/bootstrap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/special/bootstrap.zig b/std/special/bootstrap.zig index dd37f1edb6..5c8a330a92 100644 --- a/std/special/bootstrap.zig +++ b/std/special/bootstrap.zig @@ -80,7 +80,7 @@ extern fn main(c_argc: i32, c_argv: [*][*]u8, c_envp: [*]?[*]u8) i32 { var env_count: usize = 0; while (c_envp[env_count] != null) : (env_count += 1) {} const envp = @ptrCast([*][*]u8, c_envp)[0..env_count]; - return callMainWithArgs(usize(c_argc), c_argv, envp); + return callMainWithArgs(@intCast(usize, c_argc), c_argv, envp); } fn callMain() u8 { |
