diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-06 23:25:57 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-08 15:57:24 -0500 |
| commit | e0db54e89d6f4e9f56800ddb1017e30be1b7d58a (patch) | |
| tree | 5a5a88dcebf349bf92da9ba2be9e8de63dc3ab81 /lib/std/atomic/stack.zig | |
| parent | 2a6fbbd8fba30b8d24aa966606372f595c102d55 (diff) | |
| download | zig-e0db54e89d6f4e9f56800ddb1017e30be1b7d58a.tar.gz zig-e0db54e89d6f4e9f56800ddb1017e30be1b7d58a.zip | |
update the codebase to use `@as`
Diffstat (limited to 'lib/std/atomic/stack.zig')
| -rw-r--r-- | lib/std/atomic/stack.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/atomic/stack.zig b/lib/std/atomic/stack.zig index dd288adbf1..664191eb77 100644 --- a/lib/std/atomic/stack.zig +++ b/lib/std/atomic/stack.zig @@ -11,7 +11,7 @@ pub fn Stack(comptime T: type) type { root: ?*Node, lock: @typeOf(lock_init), - const lock_init = if (builtin.single_threaded) {} else u8(0); + const lock_init = if (builtin.single_threaded) {} else @as(u8, 0); pub const Self = @This(); @@ -141,8 +141,8 @@ test "std.atomic.stack" { std.debug.panic( "failure\nget_count:{} != puts_per_thread:{} * put_thread_count:{}", context.get_count, - u32(puts_per_thread), - u32(put_thread_count), + @as(u32, puts_per_thread), + @as(u32, put_thread_count), ); } } |
