diff --git a/lib/std/Thread/Futex.zig b/lib/std/Thread/Futex.zig index 58f49c483ecd..15ef35698e91 100644 --- a/lib/std/Thread/Futex.zig +++ b/lib/std/Thread/Futex.zig @@ -721,7 +721,7 @@ const PosixImpl = struct { // then cut off the zero bits from the alignment to get the unique address. const addr = @ptrToInt(ptr); assert(addr & (alignment - 1) == 0); - return addr >> @ctz(alignment); + return addr >> @ctz(@as(usize, alignment)); } };