diff --git a/src/device/r4300/cp1.c b/src/device/r4300/cp1.c index c744f1b65..4426728e0 100644 --- a/src/device/r4300/cp1.c +++ b/src/device/r4300/cp1.c @@ -110,7 +110,7 @@ void set_fpr_pointers(struct cp1* cp1, uint32_t newStatus) { for (i = 0; i < 32; i++) { - (r4300_cp1_regs_simple(cp1))[i] = &cp1->regs[i & ~1].float32[i & 1 ^ DOUBLE_HALF_XOR]; + (r4300_cp1_regs_simple(cp1))[i] = &cp1->regs[i & ~1].float32[(i & 1) ^ DOUBLE_HALF_XOR]; (r4300_cp1_regs_double(cp1))[i] = &cp1->regs[i & ~1].float64; } }