PGXP: Fix out-of-bounds write in hi/lo

This commit is contained in:
Connor McLaughlin 2020-08-30 11:13:27 +10:00
parent 3d3e552266
commit 8d49c71ec1
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ static void PGXP_InitGTE();
// pgxp_cpu.h
static void PGXP_InitCPU();
static PGXP_value CPU_reg_mem[34];
#define CPU_Hi CPU_reg[33]
#define CPU_Lo CPU_reg[34]
#define CPU_Hi CPU_reg[32]
#define CPU_Lo CPU_reg[33]
static PGXP_value CP0_reg_mem[32];
static PGXP_value* CPU_reg = CPU_reg_mem;