Commit f986cb1f90

zooster <r00ster91@proton.me>
2022-11-28 17:46:16
std.Thread.Futex.PosixImpl.Address.from: fix `alignment` type
Fixes #13673
1 parent 2f11de4
Changed files (1)
lib
std
Thread
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));
         }
     };