diff options
| author | Luna <git@l4.pm> | 2019-11-09 15:07:09 -0300 |
|---|---|---|
| committer | Luna <git@l4.pm> | 2019-11-09 15:07:09 -0300 |
| commit | fc2e8f92b20827d92614226233702830ad07b335 (patch) | |
| tree | 68f763ea8ba4ddf896ea12990efe73f56ca28d56 /lib/std/atomic/stack.zig | |
| parent | 348c0232a5612eb9bdb445e80e6e201d24911dcc (diff) | |
| parent | d18b5f8b53d24d5a27ebde5711d0d142a953adc0 (diff) | |
| download | zig-fc2e8f92b20827d92614226233702830ad07b335.tar.gz zig-fc2e8f92b20827d92614226233702830ad07b335.zip | |
Merge remote-tracking branch 'upstream/master' into unify-unix-sockets
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), ); } } |
