| ... | @@ -881,8 +881,9 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo { | ... | @@ -881,8 +881,9 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo { |
| 881 | const obj_file_name = try dbi.readNullTermString(allocator); | 881 | const obj_file_name = try dbi.readNullTermString(allocator); |
| 882 | this_record_len += obj_file_name.len + 1; | 882 | this_record_len += obj_file_name.len + 1; |
| 883 | | 883 | |
| 884 | const march_forward_bytes = this_record_len % 4; | 884 | if (this_record_len % 4 != 0) { |
| 885 | if (march_forward_bytes != 0) { | 885 | const round_to_next_4 = (this_record_len | 0x3) + 1; |
| | 886 | const march_forward_bytes = round_to_next_4 - this_record_len; |
| 886 | try dbi.seekForward(march_forward_bytes); | 887 | try dbi.seekForward(march_forward_bytes); |
| 887 | this_record_len += march_forward_bytes; | 888 | this_record_len += march_forward_bytes; |
| 888 | } | 889 | } |