authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-11-28 17:46:16+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 14:44:14-07:00
logf986cb1f90ff36f65404cb5d62baf9a5a03ce5cd
treed915cfa9640d1d0b05f88caed398aa79c15d97c5
parent2f11de4f514d9775c7713313f2dcfa7343cd2bf2

std.Thread.Futex.PosixImpl.Address.from: fix `alignment` type

Fixes #13673

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Thread/Futex.zig+1-1
......@@ -721,7 +721,7 @@ const PosixImpl = struct {
721721 // then cut off the zero bits from the alignment to get the unique address.
722722 const addr = @ptrToInt(ptr);
723723 assert(addr & (alignment - 1) == 0);
724 return addr >> @ctz(alignment);
724 return addr >> @ctz(@as(usize, alignment));
725725 }
726726 };
727727