| ... | @@ -721,7 +721,7 @@ const PosixImpl = struct { | ... | @@ -721,7 +721,7 @@ const PosixImpl = struct { |
| 721 | // then cut off the zero bits from the alignment to get the unique address. | 721 | // then cut off the zero bits from the alignment to get the unique address. |
| 722 | const addr = @ptrToInt(ptr); | 722 | const addr = @ptrToInt(ptr); |
| 723 | assert(addr & (alignment - 1) == 0); | 723 | assert(addr & (alignment - 1) == 0); |
| 724 | return addr >> @ctz(alignment); | 724 | return addr >> @ctz(@as(usize, alignment)); |
| 725 | } | 725 | } |
| 726 | }; | 726 | }; |
| 727 | | 727 | |