| ... | @@ -542,7 +542,7 @@ pub const SectionHeader = extern struct { | ... | @@ -542,7 +542,7 @@ pub const SectionHeader = extern struct { |
| 542 | | 542 | |
| 543 | pub fn setAlignment(self: *SectionHeader, new_alignment: u16) void { | 543 | pub fn setAlignment(self: *SectionHeader, new_alignment: u16) void { |
| 544 | assert(new_alignment > 0 and new_alignment <= 8192); | 544 | assert(new_alignment > 0 and new_alignment <= 8192); |
| 545 | self.flags.ALIGN = std.math.log2(new_alignment); | 545 | self.flags.ALIGN = @intCast(std.math.log2(new_alignment)); |
| 546 | } | 546 | } |
| 547 | | 547 | |
| 548 | pub fn isCode(self: SectionHeader) bool { | 548 | pub fn isCode(self: SectionHeader) bool { |