Skip to content

Commit 370be12

Browse files
g-w1Vexu
authored andcommitted
plan9 linker: fix for 32 bit
1 parent 010ca69 commit 370be12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/link/Plan9.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ hdr: aout.ExecHdr = undefined,
3636

3737
entry_val: ?u64 = null,
3838

39-
got_len: u64 = 0,
39+
got_len: usize = 0,
4040

4141
const Bases = struct {
4242
text: u64,
@@ -243,7 +243,7 @@ pub fn flushModule(self: *Plan9, comp: *Compilation) !void {
243243
const hdr_slice: []u8 = hdr_buf[0..hdr_size];
244244
var foff = hdr_size;
245245
iovecs[0] = .{ .iov_base = hdr_slice.ptr, .iov_len = hdr_slice.len };
246-
var iovecs_i: u64 = 1;
246+
var iovecs_i: usize = 1;
247247
var text_i: u64 = 0;
248248
// text
249249
{

0 commit comments

Comments
 (0)