std.os.uefi: fix shift in pool allocator

This commit is contained in:
Yusuf Bham 2023-01-27 21:40:23 -05:00 committed by Andrew Kelley
parent fcb05ee2e7
commit 9177e0da4f

View File

@ -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);