From 470c774836b611f760fde4fecd3ae8d4b1d6eac9 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 15 Dec 2022 04:15:24 -0400 Subject: [PATCH] fix: merge w/ previous --- src/Packet.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);