mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Minor static_cast clean-ups.
This commit is contained in:
parent
f3378f3e3e
commit
34a3790e11
@ -80,7 +80,7 @@ void MFMController::process_input_bit(int value) {
|
||||
break;
|
||||
}
|
||||
latest_token_.byte_value = shifter_.get_byte();
|
||||
posit_event(static_cast<int>(Event::Token));
|
||||
posit_event(int(Event::Token));
|
||||
}
|
||||
|
||||
void MFMController::write_bit(int bit) {
|
||||
|
@ -108,7 +108,7 @@ void Shifter::add_input_bit(int value) {
|
||||
}
|
||||
|
||||
uint8_t Shifter::get_byte() const {
|
||||
return static_cast<uint8_t>(
|
||||
return uint8_t(
|
||||
((shift_register_ & 0x0001) >> 0) |
|
||||
((shift_register_ & 0x0004) >> 1) |
|
||||
((shift_register_ & 0x0010) >> 2) |
|
||||
|
Loading…
Reference in New Issue
Block a user