1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 01:31:42 +00:00

Minor static_cast clean-ups.

This commit is contained in:
Thomas Harte 2019-12-22 17:56:59 -05:00
parent f3378f3e3e
commit 34a3790e11
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) |