From 82edc20696279b3ce850718b99b86a220db0d211 Mon Sep 17 00:00:00 2001 From: Arceveti <73617174+Arceveti@users.noreply.github.com> Date: Tue, 28 Sep 2021 17:35:12 -0700 Subject: [PATCH] Fix insn_disasm build warnings --- src/game/insn_disasm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/game/insn_disasm.c b/src/game/insn_disasm.c index c2dfb31a..3e679397 100644 --- a/src/game/insn_disasm.c +++ b/src/game/insn_disasm.c @@ -21,15 +21,15 @@ extern far char *parse_map(u32); static char insn_as_string[100]; typedef struct __attribute__((packed)) { - u8 rd : 5; - u8 shift_amt : 5; - u8 function : 6; + u16 rd : 5; + u16 shift_amt : 5; + u16 function : 6; } RTypeData; typedef struct __attribute__((packed)) { - u8 opcode : 6; - u8 rs : 5; - u8 rt : 5; + u16 opcode : 6; + u16 rs : 5; + u16 rt : 5; union { RTypeData rdata; u16 immediate; @@ -44,8 +44,8 @@ typedef union { typedef struct __attribute__((packed)) { u32 type; u32 arbitraryParam; - u8 opcode : 6; - u8 function : 6; + u16 opcode : 6; + u16 function : 6; u8 name[10]; } InsnTemplate;