mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Satisfy GCC warning.
This commit is contained in:
parent
8af173c4bc
commit
4b730c26d0
@ -162,7 +162,7 @@ typename Accessor<IntT, access>::type resolve(
|
|||||||
//
|
//
|
||||||
// * if this is a memory access, set target_address and break;
|
// * if this is a memory access, set target_address and break;
|
||||||
// * otherwise return the appropriate value.
|
// * otherwise return the appropriate value.
|
||||||
uint32_t target_address;
|
uint32_t target_address = 0;
|
||||||
switch(source) {
|
switch(source) {
|
||||||
// Defer all register accesses to the register-specific lookup.
|
// Defer all register accesses to the register-specific lookup.
|
||||||
case Source::eAX: return *register_<IntT, access, Source::eAX>(context);
|
case Source::eAX: return *register_<IntT, access, Source::eAX>(context);
|
||||||
@ -183,7 +183,7 @@ typename Accessor<IntT, access>::type resolve(
|
|||||||
case Source::None: return *none;
|
case Source::None: return *none;
|
||||||
|
|
||||||
case Source::Immediate:
|
case Source::Immediate:
|
||||||
*immediate = instruction.operand();
|
*immediate = IntT(instruction.operand());
|
||||||
return *immediate;
|
return *immediate;
|
||||||
|
|
||||||
case Source::Indirect:
|
case Source::Indirect:
|
||||||
|
Loading…
Reference in New Issue
Block a user