mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
std.os.uefi: fix shift in pool allocator (again) (#14497)
This commit is contained in:
parent
17404f8e6e
commit
ef8f694d77
@ -22,7 +22,7 @@ const UefiPoolAllocator = struct {
|
|||||||
|
|
||||||
assert(len > 0);
|
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);
|
const metadata_len = mem.alignForward(@sizeOf(usize), ptr_align);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user