commit 9177e0da4f8e3480f5a7fade6c42f2ec81f5ffd5 (tree) parent fcb05ee2e70ab76c21211ecc2581d5d4ae5917b1 Author: Yusuf Bham <ybham6@gmail.com> Date: Fri, 27 Jan 2023 21:40:23 -0500 std.os.uefi: fix shift in pool allocator Diffstat:
| M | lib/std/os/uefi/pool_allocator.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/os/uefi/pool_allocator.zig b/lib/std/os/uefi/pool_allocator.zig @@ -22,7 +22,7 @@ const UefiPoolAllocator = struct { assert(len > 0); - const ptr_align = 1 << log2_ptr_align; + const ptr_align = @as(usize, 1) << @as(Allocator.Log2Align, log2_ptr_align); const metadata_len = mem.alignForward(@sizeOf(usize), ptr_align);