aboutsummaryrefslogtreecommitdiff
path: root/lib/std/atomic/queue.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-08 18:30:07 -0500
committerGitHub <noreply@github.com>2019-11-08 18:30:07 -0500
commit6d5abf87ecd3509c6fb8b9c917b73b4db2ae59ff (patch)
treefcf1f309750159e579bdf99e2f7646c3bbd8a1a9 /lib/std/atomic/queue.zig
parent6d28b28ccc689e6bf8849b1d39e969e8da760999 (diff)
parentf7b1e02158550a8df3c189299da88568b381f5b1 (diff)
downloadzig-6d5abf87ecd3509c6fb8b9c917b73b4db2ae59ff.tar.gz
zig-6d5abf87ecd3509c6fb8b9c917b73b4db2ae59ff.zip
Merge pull request #3628 from ziglang/as-builtin
implement `@as` builtin and fix result location semantics with regards to type coercion
Diffstat (limited to 'lib/std/atomic/queue.zig')
-rw-r--r--lib/std/atomic/queue.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/atomic/queue.zig b/lib/std/atomic/queue.zig
index dbc011bed3..173355eb3b 100644
--- a/lib/std/atomic/queue.zig
+++ b/lib/std/atomic/queue.zig
@@ -214,8 +214,8 @@ test "std.atomic.Queue" {
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),
);
}
}