aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/RwLock.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-29 14:10:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-29 14:10:59 -0700
commitde7270028d2b70ceea74c43be943b1b788c797a6 (patch)
tree0d9b545a2a9d36c86b79178f797adf5ebcd40d17 /lib/std/Thread/RwLock.zig
parent7c9a8ecc2aca7f925e59d282540ef8e2d1ae211e (diff)
parente69973beddcd8a42dbc7ebcfb96187e5a6f61b61 (diff)
downloadzig-de7270028d2b70ceea74c43be943b1b788c797a6.tar.gz
zig-de7270028d2b70ceea74c43be943b1b788c797a6.zip
Merge remote-tracking branch 'origin/master' into llvm15
Diffstat (limited to 'lib/std/Thread/RwLock.zig')
-rw-r--r--lib/std/Thread/RwLock.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Thread/RwLock.zig b/lib/std/Thread/RwLock.zig
index 201e1cc860..46d46cdfa4 100644
--- a/lib/std/Thread/RwLock.zig
+++ b/lib/std/Thread/RwLock.zig
@@ -168,8 +168,8 @@ pub const DefaultRwLock = struct {
const IS_WRITING: usize = 1;
const WRITER: usize = 1 << 1;
const READER: usize = 1 << (1 + @bitSizeOf(Count));
- const WRITER_MASK: usize = std.math.maxInt(Count) << @ctz(usize, WRITER);
- const READER_MASK: usize = std.math.maxInt(Count) << @ctz(usize, READER);
+ const WRITER_MASK: usize = std.math.maxInt(Count) << @ctz(WRITER);
+ const READER_MASK: usize = std.math.maxInt(Count) << @ctz(READER);
const Count = std.meta.Int(.unsigned, @divFloor(@bitSizeOf(usize) - 1, 2));
pub fn tryLock(rwl: *DefaultRwLock) bool {