Merge pull request #117 from RobLoach/patch-5
Fix parentheses around ‘+’ in operand of ‘&’
This commit is contained in:
commit
f8609e0279
@ -338,7 +338,7 @@ static void add_hl_rr(GB_gameboy_t *gb, uint8_t opcode)
|
|||||||
gb->registers[GB_REGISTER_AF] |= GB_HALF_CARRY_FLAG;
|
gb->registers[GB_REGISTER_AF] |= GB_HALF_CARRY_FLAG;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ((unsigned long) hl) + ((unsigned long) rr) & 0x10000) {
|
if ( ((unsigned long) hl + (unsigned long) rr) & 0x10000) {
|
||||||
gb->registers[GB_REGISTER_AF] |= GB_CARRY_FLAG;
|
gb->registers[GB_REGISTER_AF] |= GB_CARRY_FLAG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user