Skip to content

Commit

Permalink
Merge pull request #1090 from Clownacy/patch-1
Browse files Browse the repository at this point in the history
Fix operator precedence in some big-endian code.
  • Loading branch information
richard42 authored Sep 10, 2024
2 parents b0d68c2 + 52ee249 commit 312a5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/r4300/cp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 312a5be

Please sign in to comment.