std.os.uefi: fix shift in pool allocator (again) (#14497)

This commit is contained in:
leap123 2023-02-01 01:08:30 +07:00 committed by GitHub
parent 17404f8e6e
commit ef8f694d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ const UefiPoolAllocator = struct {
assert(len > 0);
const ptr_align = @as(usize, 1) << @as(Allocator.Log2Align, log2_ptr_align);
const ptr_align = @as(usize, 1) << @intCast(Allocator.Log2Align, log2_ptr_align);
const metadata_len = mem.alignForward(@sizeOf(usize), ptr_align);