mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Thread.Futex.PosixImpl.Address.from: fix alignment type
Fixes #13673
This commit is contained in:
parent
2f11de4f51
commit
f986cb1f90
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue