mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 21:13:24 +00:00
std.os.uefi: fix shift in pool allocator
This commit is contained in:
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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user