mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std.coff: fix setAlignment
This commit is contained in:
parent
64e84a452b
commit
815022c87b
@ -542,7 +542,7 @@ pub const SectionHeader = extern struct {
|
||||
|
||||
pub fn setAlignment(self: *SectionHeader, new_alignment: u16) void {
|
||||
assert(new_alignment > 0 and new_alignment <= 8192);
|
||||
self.flags.ALIGN = std.math.log2(new_alignment);
|
||||
self.flags.ALIGN = @intCast(std.math.log2(new_alignment));
|
||||
}
|
||||
|
||||
pub fn isCode(self: SectionHeader) bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user