| ... | ... | @@ -2437,7 +2437,7 @@ pub const EntryHeader = struct { |
| 2437 | 2437 | |
| 2438 | 2438 | /// The length of the entry including the ID field, but not the length field itself |
| 2439 | 2439 | pub fn entryLength(self: EntryHeader) usize { |
| 2440 | | return self.entry_bytes.len + @as(u8, if (self.is_64) 8 else 4); |
| 2440 | return self.entry_bytes.len + @as(u8, if (self.format == .@"64") 8 else 4); |
| 2441 | 2441 | } |
| 2442 | 2442 | |
| 2443 | 2443 | /// Reads a header for either an FDE or a CIE, then advances the fbr to the position after the trailing structure. |
| ... | ... | @@ -2735,7 +2735,7 @@ fn pcRelBase(field_ptr: usize, pc_rel_offset: i64) !usize { |
| 2735 | 2735 | |
| 2736 | 2736 | // Reading debug info needs to be fast, even when compiled in debug mode, |
| 2737 | 2737 | // so avoid using a `std.io.FixedBufferStream` which is too slow. |
| 2738 | | const FixedBufferReader = struct { |
| 2738 | pub const FixedBufferReader = struct { |
| 2739 | 2739 | buf: []const u8, |
| 2740 | 2740 | pos: usize = 0, |
| 2741 | 2741 | endian: std.builtin.Endian, |