Skip to content

Commit

Permalink
Fix apparent copy/paste error in hscmisc.c:
Browse files Browse the repository at this point in the history
Reported by "dcb314" in rbowler/spinhawk (https://github.com/rbowler/spinhawk) issue 83 (rbowler/spinhawk#83) "hscmisc.c:1218:29: warning: duplicated 'if' condition [-Wduplicated-cond]", the same bug which also existed in SDL Hyperion.
  • Loading branch information
Fish-Git committed Jan 30, 2019
1 parent 652e952 commit 7de109f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hscmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2557,10 +2557,7 @@ char regs_msg_buf[4*512] = {0};
if (inst[1] >= 0x29 && inst[1] <= 0x2C)
addr2 = regs->GR(b2) & ADDRESS_MAXWRAP_E(regs);
else
if (inst[1] >= 0x29 && inst[1] <= 0x2C)
addr2 = regs->GR(b2) & ADDRESS_MAXWRAP(regs);
else
addr2 = regs->GR(b2) & ADDRESS_MAXWRAP(regs);
}

/* Calculate the operand address for RIL_A instructions */
Expand Down

0 comments on commit 7de109f

Please sign in to comment.