Minor cleanup

This commit is contained in:
Francesco Rigoni 2018-03-11 14:04:20 +01:00
parent 1a5385b2ee
commit 5db1b70a0e

View File

@ -35,8 +35,7 @@ Address Address::sumOffsetToAddressNoWrapAround(const Address &address, uint16_t
}
Address Address::sumOffsetToAddressWrapAround(const Address &address, uint16_t offset) {
Address newAddress(address.getBank(), address.getOffset() + offset);
return newAddress;
return Address(address.getBank(), address.getOffset() + offset);
}
Address Address::sumOffsetToAddress(const Address &address, uint16_t offset) {