std.os.uefi: fix shift in pool allocator
This commit is contained in:
committed by
Andrew Kelley
parent
fcb05ee2e7
commit
9177e0da4f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user