diff --git a/src/Packet.zig b/src/Packet.zig index d63a79e..4cd64a9 100644 --- a/src/Packet.zig +++ b/src/Packet.zig @@ -65,7 +65,7 @@ pub fn parse(self: *Self, allocator: Allocator, emu: Emulator) !String { const ret = try allocator.alloc(u8, r.len * reg_len + reg_len); // r0 -> r15 + CPSR { - var i: usize = 0; + var i: u32 = 0; while (i < r.len + 1) : (i += 1) { const reg: u32 = if (i < r.len) r[i] else cpsr; @@ -93,7 +93,7 @@ pub fn parse(self: *Self, allocator: Allocator, emu: Emulator) !String { const ret = try allocator.alloc(u8, len * 2); { - var i: usize = 0; + var i: u32 = 0; while (i < len) : (i += 1) { const value: u8 = emu.read(addr + i);